 
<!DOCTYPE html>
 
<head>
<title>中国建设银行 企业网上银行</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--第二步：css文件嵌入(示具体情况而定引用文件)-->
<link href="https://b2bstatic.ccb.com/V6/STY6/CN/css7/ccb7.css" rel="stylesheet" type="text/css" />
<!--第三步：js文件嵌入(示具体情况而定引用文件)-->
<script language="javascript" src="https://b2bstatic.ccb.com/V6/STY6/CN/js7/ccb7.js"></script>
<script language="javascript" src="https://b2bstatic.ccb.com/V6/STY6/CN/js7/jh7.js"></script>
<script language="javascript" src="https://b2bstatic.ccb.com/V6/STY6/CN/js7/calendar.js"></script>
<script language="javascript" src="https://b2bstatic.ccb.com/V6/STY6/CN/js6/sortTable.js"></script>

<script type="text/javascript" src="https://b2bstatic.ccb.com/V6/STY6/CN/js7/pub/jquery.js"></script>
<script language="javascript">

var defPayAcc = '';  			   //默认付款账号
var defPayAccSel = "0";									   //默认付款账号选择标志 0-没有默认付款账号或者原默认付款账号不在付款账户列表 1-默认付款账号自动匹配成功
var dx_acc_flag = '1';  	   //选择的账户是否为定向付款账户： 0-是；1-否
var dxMaxFlag = '';	   	   //选择付款账户对应的最大定向收款账户数
var yht_flag = '';  		   //选择的账户是否为一户通账户： 0-是；1-否
var yhtPageTotal = '';   //一户通账户返回子账户页数
var ys_acc_flag = '';  	   //选择的账户是否开通预算：  0-是；1-否
var pay_condition_flag = '1';  	   //选择的账户是否存在定条件流程：0-是；1-否
var deftuse = '';                 //默认用途名称
var deftuseSel = "0";									   //默认用途选择标志 0-没有默认用途或者原默认用途不存在用途列表 1-默认用途自动匹配成功
var perTranLimit = "";									   //操作员单笔限额
var tipError = '';                //错误提示信息
var memoFlag= '';           //账户自定义备注信息开通标志  0-开通
var signNum = '';            //账户自定义备注信息签约个数
var openTimeFlag =  '1';  //定时定频制单设置开通  1-开通  0-关闭

//dx_acc_flag="1";  //方便测试

var yi_show  = new Array();
var yi_value = new Array();
var er_show  = new Array();
var er_value = new Array();
//账户类别-----------------------begin---------------------------------------------------
var type_show  = new Array();
var type_value = new Array();
var acc_show  = new Array();
var acc_value = new Array();
var acc_name = new Array();

var payCny_Acchar_Cd = {

'32050161473600000625':''

};

type_show[0]="全部可操作账号"
type_value[0]="全部可操作账号"
acc_show[0]=new Array();
acc_value[0]=new Array();
acc_name[0]= new Array();

//全部付款账号

acc_show[0][0]='32050161473600000625 无锡快乐说教育科技有限公司 人民币 中国建设银行股份有限公司无锡梁溪支行 ';
acc_value[0][0]='32050161473600000625';
acc_name[0][0]='无锡快乐说教育科技有限公司';


//按类别分组付款账号

type_show[1] ='0';
type_value[1]='0';
acc_show[1] =new Array();
acc_value[1]=new Array();
acc_name[1]=new Array();


 acc_show[1][0]='32050161473600000625 无锡快乐说教育科技有限公司 人民币 中国建设银行股份有限公司无锡梁溪支行 ';
 acc_value[1][0]='32050161473600000625';
 acc_name[1][0]='无锡快乐说教育科技有限公司';

//--------------------------------end------------------------------------------

//---------------常用收款账户-----------
var index = 0;
var revCount = 2;
var maxRevCount = 300;

var comRevAccNo = new Array();


index = 0;
var priRevAccNo = new Array();

priRevAccNo[index++] = '6228480433514091811';

priRevAccNo[index++] = 'yzft@qq.com';

//-----------------------end-----------

var subAcc = new Array();   //所有子账户
var subAcc1 = new Array();  //一级子账户
var subAcc2 = new Array();  //二级子账户
var TypeMap = {'0001':'结算子账户','0002':'管理账户','0003':'活期账户','0102':'定期存款','0106':'通知存款'};

var levelIndex = 0;
parentSubAcc = "";



//如果选择的付款账户为一户通账户，则初始化一户通子账户
function initSubAcc(){
	var levelIndex1=0;  //一级子账户下标
	var levelIndex2=0;  //二级子账户下标
	subAcc1 = new Array();
	subAcc2 = new Array();
	if(subAcc.length>0){
		//document.getElementById("pay_info").rowSpan="5";
		for(var k=0;k<subAcc.length;k++){
			if(subAcc[k][1]!=""&&"0001,0002,0003".indexOf(subAcc[k][1]) > -1){
				if(subAcc[k][4]=="1"){ //一级子账户
					subAcc1[levelIndex1] = new Array();
					subAcc1[levelIndex1][0]= subAcc[k][0];    //子账户序号
					subAcc1[levelIndex1][1]= subAcc[k][1];    //子账户类型
					subAcc1[levelIndex1][2]= subAcc[k][2];    //子账户余额
					subAcc1[levelIndex1][3]= subAcc[k][3];    //子账户名称
					parentSubAcc = subAcc[k][0];
					levelIndex1++;
				}else{  //二级子账户
					subAcc2[levelIndex2] = new Array();
					subAcc2[levelIndex2][0]= subAcc[k][0];    //子账户序号
					subAcc2[levelIndex2][1]= subAcc[k][1];    //子账户类型
					subAcc2[levelIndex2][2]= subAcc[k][2];    //子账户余额
					subAcc2[levelIndex2][3]= subAcc[k][3];    //子账户名称
					subAcc2[levelIndex2][4]= parentSubAcc;    //主账号
					levelIndex2++;
				}
			}
		}
		
		//初始化一级付款子账户
		var pay_subAcc1 = document.jhform.pay_sub1 ;
		pay_subAcc1.options.length = 1;
		for(i = 0 ; i < subAcc1.length ; i++){
			var value = subAcc1[i][0] +"|"+ subAcc1[i][1] + "|" + subAcc1[i][3];
			var text = subAcc1[i][0] + " " + subAcc1[i][3] + " " + TypeMap[subAcc1[i][1]] ;
			pay_subAcc1.add(new Option(text,value));
		}
		//初始化一级收款子账户
		var recv_subAcc1 = document.jhform.recv_sub1 ;
		recv_subAcc1.options.length = 1;
		for(i = 0 ; i < subAcc1.length ; i++){
			var value = subAcc1[i][0] +"|"+ subAcc1[i][1] + "|" + subAcc1[i][3];
			var text = subAcc1[i][0] + " " + subAcc1[i][3] + " " + TypeMap[subAcc1[i][1]] ;
			recv_subAcc1.add(new Option(text,value));
		}
		updateSubBlance();
	}
}

//初始化付款一户通二级子账户选项
function selPaySubAcc(){
	var pay_subAcc1= document.jhform.pay_sub1;
	var pay_subAcc2= document.jhform.pay_sub2;
	pay_subAcc2.options.length = 1;
	for(i=0;i<subAcc2.length;i++){
		if(subAcc2[i][4] == pay_subAcc1.value.split("|")[0]){
			var value = subAcc2[i][0] +"|" + subAcc2[i][1] + "|" + subAcc2[i][3];
			var text = subAcc2[i][0] + " " + subAcc2[i][3] + " " + TypeMap[subAcc2[i][1]] ;
			pay_subAcc2.add(new Option(text,value));
		}
	}
	if(pay_subAcc2.options.length >1){
		document.jhform.pay_sub2.style.display="";
	}else{
		document.jhform.pay_sub2.style.display="none";
	}
	updateSubBlance();
	if(pay_subAcc1.selectedIndex > 0){
		var EFS_ACCT_SEQ = pay_subAcc1.value.split("|")[1];
		if(EFS_ACCT_SEQ == '0002' && pay_subAcc2.options.length == 1 ){
			alert("您选择的付款账户二级管理账户无可用活期账户，请重新选择");
			document.jhform.pay_sub1.focus();
			return false;
		}
	}
}

//更新一户通子账户余额
function updateSubBlance(){
	var pay_subAcc1= document.jhform.pay_sub1;
	var pay_subAcc2= document.jhform.pay_sub2;
	var sub_acc_code;
	var sub_blance = '';
	if(pay_subAcc2.options.length > 1 && pay_subAcc2.selectedIndex >0){
		sub_acc_code = pay_subAcc2.value.split("|")[0];
		for(i = 0 ; i < subAcc2.length ; i++){
			if(subAcc2[i][0] == sub_acc_code){
				sub_blance = subAcc2[i][2];
				break;
			}
		}
	}else{
		sub_acc_code =pay_subAcc1.value.split("|")[0];
			for(i = 0 ; i < subAcc1.length ; i++){
				if(subAcc1[i][0] == sub_acc_code){
					sub_blance = subAcc1[i][2];
					break;
				}
			}
	}
	if(sub_blance!=''){
		document.getElementById('SUB_BALANCE').innerText = " 账户余额："+sub_blance+"元";
	}else{
		document.getElementById('SUB_BALANCE').innerText = "";
	}
	//document.jhform.SUB_ACC_BALANCE.value = sub_blance;
}

//初始化收款一户通二级子账户
function selRecvSubAcc(){
	var recv_subAcc1= document.jhform.recv_sub1;
	var recv_subAcc2= document.jhform.recv_sub2;
	recv_subAcc2.options.length = 1;
	for(i=0;i<subAcc2.length;i++){
		if(subAcc2[i][4] == recv_subAcc1.value.split("|")[0]){
			var value = subAcc2[i][0] +"|" + subAcc2[i][1] + "|" + subAcc2[i][3];
			var text = subAcc2[i][0] + " " + subAcc2[i][3] + " " + TypeMap[subAcc2[i][1]] ;
			recv_subAcc2.add(new Option(text,value));
		}
	}
	if(recv_subAcc2.options.length > 1){
		document.jhform.recv_sub2.style.display="";
	}else{
		document.jhform.recv_sub2.style.display="none";
	}
	if(recv_subAcc1.selectedIndex > 0){
		var EFS_ACCT_SEQ = recv_subAcc1.value.split("|")[1];
		if(EFS_ACCT_SEQ == '0002' && recv_subAcc2.options.length == 1 ){
			alert("您选择的收款账户二级管理账户无可用活期账户，请重新选择");
			document.jhform.recv_sub1.focus();
			return false;
		}
	}
}


function reLoadSubAcc(subAccSeq,subAccType,subAccBal,subAccNm,subAccLevel){
	var oriSubAccLen = subAcc.length;
	for(var j=0;j<oriSubAccLen;j++){
		if(subAccSeq==subAcc[j][0]){
			//alert(subAccSeq + "子账户已经存在下拉列表，请重新选择");
			return;
		}
	}
	subAcc[oriSubAccLen] = new Array();
	subAcc[oriSubAccLen][0]= subAccSeq;   		//子账户序号
	subAcc[oriSubAccLen][1]= subAccType;     	//子账户类型
	subAcc[oriSubAccLen][2]= subAccBal; 		//子账户余额
	subAcc[oriSubAccLen][3]= subAccNm;    		//子账户名称
	subAcc[oriSubAccLen][4]= subAccLevel;   	//层次号
	initSubAcc();
	
	if(subAccLevel=="1"){
		var rePaySub1 = document.jhform.pay_sub1;
		rePaySub1.options[rePaySub1.length-1].selected = true;
		selPaySubAcc();
	}else if(subAccLevel=="2"){
		var rePaySub2 = document.jhform.pay_sub2;
		rePaySub2.options[rePaySub2.length-1].selected = true;
	}
}


var bankData={"data":[
	
	{"id":"102","value":"中国工商银行"},
	
	{"id":"103","value":"中国农业银行"},
	
	{"id":"104","value":"中国银行"},
	
	{"id":"301","value":"交通银行"},
	
	{"id":"308","value":"招商银行"},
	
	{"id":"969","value":"(澳门地区)大西洋银行"},
	
	{"id":"641","value":"奥地利奥合国际银行"},
	
	{"id":"989","value":"澳大利亚和新西兰银行"},
	
	{"id":"761","value":"澳大利亚和新西兰银行"},
	
	{"id":"762","value":"澳大利亚西太平洋银行"},
	
	{"id":"652","value":"比利时富通银行"},
	
	{"id":"651","value":"比利时联合银行"},
	
	{"id":"318","value":"渤海银行"},
	
	{"id":"313","value":"城市商业银行"},
	
	{"id":"401","value":"城市信用社"},
	
	{"id":"507","value":"创兴银行"},
	
	{"id":"320","value":"村镇银行（四川仪陇惠民、桃江建信）"},
	
	{"id":"622","value":"大华银行"},
	
	{"id":"513","value":"大新银行"},
	
	{"id":"508","value":"大众银行"},
	
	{"id":"716","value":"德国北德意志州银行"},
	
	{"id":"713","value":"德国商业银行"},
	
	{"id":"712","value":"德意志银行"},
	
	{"id":"525","value":"第一商业银行"},
	
	{"id":"694","value":"东方汇理银行"},
	
	{"id":"502","value":"东亚银行"},
	
	{"id":"767","value":"俄罗斯外贸银行"},
	
	{"id":"782","value":"法国巴黎银行"},
	
	{"id":"695","value":"法国外贸银行"},
	
	{"id":"691","value":"法国兴业银行"},
	
	{"id":"306","value":"广发银行"},
	
	{"id":"011","value":"国家金库"},
	
	{"id":"201","value":"国家开发银行"},
	
	{"id":"906","value":"国泰君安证券"},
	
	{"id":"523","value":"国泰世华商业银行"},
	
	{"id":"594","value":"韩国产业银行"},
	
	{"id":"598","value":"韩国国民银行"},
	
	{"id":"591","value":"韩国外换银行"},
	
	{"id":"597","value":"韩亚银行"},
	
	{"id":"662","value":"荷兰安智银行"},
	
	{"id":"776","value":"荷兰合作银行"},
	
	{"id":"661","value":"荷兰银行"},
	
	{"id":"524","value":"合作金库商业银行"},
	
	{"id":"315","value":"恒丰银行"},
	
	{"id":"504","value":"恒生银行"},
	
	{"id":"531","value":"花旗银行"},
	
	{"id":"775","value":"华美银行"},
	
	{"id":"521","value":"华南商业银行"},
	
	{"id":"621","value":"华侨永享银行"},
	
	{"id":"785","value":"华商银行"},
	
	{"id":"304","value":"华夏银行"},
	
	{"id":"787","value":"华一银行"},
	
	{"id":"319","value":"徽商银行"},
	
	{"id":"501","value":"汇丰银行"},
	
	{"id":"506","value":"集友银行"},
	
	{"id":"751","value":"加拿大丰业银行"},
	
	{"id":"UCB","value":"柬埔寨联合商业银行"},
	
	{"id":"611","value":"马来西亚马来亚银行"},
	
	{"id":"534","value":"美国建东银行"},
	
	{"id":"532","value":"美国银行有限公司"},
	
	{"id":"752","value":"蒙特利尔银行"},
	
	{"id":"323","value":"民营银行"},
	
	{"id":"533","value":"摩根大通银行"},
	
	{"id":"771","value":"摩根士丹利国际银行"},
	
	{"id":"503","value":"南洋商业银行"},
	
	{"id":"317","value":"农村合作银行"},
	
	{"id":"314","value":"农村商业银行"},
	
	{"id":"402","value":"农村信用社"},
	
	{"id":"581","value":"挪威银行"},
	
	{"id":"631","value":"盘古银行"},
	
	{"id":"307","value":"平安银行"},
	
	{"id":"907","value":"其他银行907"},
	
	{"id":"908","value":"其他银行908"},
	
	{"id":"910","value":"其他银行910"},
	
	{"id":"999","value":"其他银行999"},
	
	{"id":"505","value":"其它银行"},
	
	{"id":"XXX","value":"其它银行"},
	
	{"id":"000","value":"其它银行000"},
	
	{"id":"012","value":"其它银行012"},
	
	{"id":"902","value":"其它银行902"},
	
	{"id":"903","value":"其它银行903"},
	
	{"id":"904","value":"其它银行904"},
	
	{"id":"905","value":"其它银行905"},
	
	{"id":"911","value":"其它银行911"},
	
	{"id":"596","value":"企业银行"},
	
	{"id":"567","value":"日本横滨银行"},
	
	{"id":"566","value":"日本三井住友信托银行"},
	
	{"id":"563","value":"日本三井住友银行"},
	
	{"id":"565","value":"日本山口银行"},
	
	{"id":"682","value":"瑞典北欧斯安银行"},
	
	{"id":"681","value":"瑞典商业银行"},
	
	{"id":"683","value":"瑞典银行"},
	
	{"id":"741","value":"瑞士信贷银行"},
	
	{"id":"742","value":"瑞士银行"},
	
	{"id":"564","value":"瑞穗实业银行"},
	
	{"id":"561","value":"三菱东京日联银行"},
	
	{"id":"322","value":"上海农村商业银行"},
	
	{"id":"310","value":"上海浦东发展银行"},
	
	{"id":"511","value":"上海商业银行"},
	
	{"id":"325","value":"上海银行"},
	
	{"id":"616","value":"首都银行"},
	
	{"id":"526","value":"台湾土地银行"},
	
	{"id":"528","value":"台湾银行"},
	
	{"id":"633","value":"泰国泰华农民银行"},
	
	{"id":"632","value":"泰国泰京银行"},
	
	{"id":"781","value":"厦门国际银行"},
	
	{"id":"595","value":"新韩银行"},
	
	{"id":"773","value":"新联商业银行"},
	
	{"id":"623","value":"星展银行"},
	
	{"id":"309","value":"兴业银行"},
	
	{"id":"732","value":"意大利联合圣保罗银行"},
	
	{"id":"731","value":"意大利裕信银行"},
	
	{"id":"909","value":"银行间市场清算所"},
	
	{"id":"673","value":"英国巴克莱银行"},
	
	{"id":"672","value":"英国苏格兰皇家银行"},
	
	{"id":"SIN","value":"永丰商业银行"},
	
	{"id":"510","value":"永亨银行"},
	
	{"id":"512","value":"永隆银行"},
	
	{"id":"593","value":"友利银行"},
	
	{"id":"529","value":"玉山商业银行"},
	
	{"id":"LVB","value":"越南联越银行"},
	
	{"id":"MHB","value":"越南湄公河住房银行"},
	
	{"id":"671","value":"渣打银行"},
	
	{"id":"522","value":"彰化银行"},
	
	{"id":"527","value":"兆丰国际商业银行"},
	
	{"id":"316","value":"浙商银行"},
	
	{"id":"717","value":"中德住房储蓄银行"},
	
	{"id":"303","value":"中国光大银行"},
	
	{"id":"202","value":"中国进出口银行"},
	
	{"id":"305","value":"中国民生银行"},
	
	{"id":"203","value":"中国农业发展银行"},
	
	{"id":"001","value":"中国人民银行"},
	
	{"id":"600","value":"中国信托商业银行"},
	
	{"id":"403","value":"中国邮政储蓄银行"},
	
	{"id":"514","value":"中信嘉华银行"},
	
	{"id":"302","value":"中信银行"},
	
	{"id":"901","value":"中央结算公司"},
	
	{"id":"321","value":"重庆三峡银行"}
	
]};

var provData={"data":[
	
	{"id":"*E5*AE*89*E5*BE*BD*E7*9C*81","value":"安徽省"},
	
	{"id":"*E5*8C*97*E4*BA*AC*E5*B8*82","value":"北京市"},
	
	{"id":"*E7*A6*8F*E5*BB*BA*E7*9C*81","value":"福建省"},
	
	{"id":"*E7*94*98*E8*82*83*E7*9C*81","value":"甘肃省"},
	
	{"id":"*E5*B9*BF*E4*B8*9C*E7*9C*81","value":"广东省"},
	
	{"id":"*E5*B9*BF*E8*A5*BF","value":"广西"},
	
	{"id":"*E8*B4*B5*E5*B7*9E*E7*9C*81","value":"贵州省"},
	
	{"id":"*E6*B5*B7*E5*8D*97*E7*9C*81","value":"海南省"},
	
	{"id":"*E6*B2*B3*E5*8C*97*E7*9C*81","value":"河北省"},
	
	{"id":"*E6*B2*B3*E5*8D*97*E7*9C*81","value":"河南省"},
	
	{"id":"*E9*BB*91*E9*BE*99*E6*B1*9F*E7*9C*81","value":"黑龙江省"},
	
	{"id":"*E6*B9*96*E5*8C*97*E7*9C*81","value":"湖北省"},
	
	{"id":"*E6*B9*96*E5*8D*97*E7*9C*81","value":"湖南省"},
	
	{"id":"*E5*90*89*E6*9E*97*E7*9C*81","value":"吉林省"},
	
	{"id":"*E6*B1*9F*E8*8B*8F*E7*9C*81","value":"江苏省"},
	
	{"id":"*E6*B1*9F*E8*A5*BF*E7*9C*81","value":"江西省"},
	
	{"id":"*E8*BE*BD*E5*AE*81*E7*9C*81","value":"辽宁省"},
	
	{"id":"*E5*86*85*E8*92*99*E5*8F*A4*E8*87*AA*E6*B2*BB*E5*8C*BA","value":"内蒙古自治区"},
	
	{"id":"*E5*AE*81*E5*A4*8F","value":"宁夏"},
	
	{"id":"*E5*85*B6*E4*BB*96*E7*9C*81*E4*BB*BD*E6*88*96*E5*9C*B0*E5*8C*BA","value":"其他省份或地区"},
	
	{"id":"*E9*9D*92*E6*B5*B7*E7*9C*81","value":"青海省"},
	
	{"id":"*E5*B1*B1*E4*B8*9C*E7*9C*81","value":"山东省"},
	
	{"id":"*E5*B1*B1*E8*A5*BF*E7*9C*81","value":"山西省"},
	
	{"id":"*E9*99*95*E8*A5*BF*E7*9C*81","value":"陕西省"},
	
	{"id":"*E4*B8*8A*E6*B5*B7*E5*B8*82","value":"上海市"},
	
	{"id":"*E5*9B*9B*E5*B7*9D*E7*9C*81","value":"四川省"},
	
	{"id":"*E5*A4*A9*E6*B4*A5*E5*B8*82","value":"天津市"},
	
	{"id":"*E8*A5*BF*E8*97*8F","value":"西藏"},
	
	{"id":"*E6*96*B0*E7*96*86","value":"新疆"},
	
	{"id":"*E4*BA*91*E5*8D*97*E7*9C*81","value":"云南省"},
	
	{"id":"*E6*B5*99*E6*B1*9F*E7*9C*81","value":"浙江省"},
	
	{"id":"*E9*87*8D*E5*BA*86*E5*B8*82","value":"重庆市"}
	
]};

var cityData={"data":[
]};

var counterData={"data":[
]};

//定向账户
var ccbDxAccVals = new Array();  	//定向建行账户选项值
var ccbDxAccTexs = new Array();  	//定向建行账户选项文本
var otherDxAccVals = new Array();   //定向跨行账户选项值
var otherDxAccTexs = new Array();   //定向跨行账户选项文本
var ccbDxIndex = 0;
var otherDxIndex = 0;



function checkLength(v){
	var s = v.value
	var l = 58
	var len = 0
	for(i=0;i<s.length;i++){
	  var c = s.substr(i,1)
	  var ts = escape(c)
	  if(ts.substring(0,2) == "%u"){
	    len+=2
	  }
	  else{len+=1}
	}
	if(l>=len){ return false}
	else{
	  var aaa=Math.floor(l/2)
	  alert("收款单位全称最多"+l+"个字符或"+aaa+"个汉字")
	  v.focus()
	  return true
	}
}


function checkCounterData(counterDataId){
	for(var jj=0;jj<counterData.data.length;jj++) {
		if (counterData.data[jj].id == counterDataId) {
			return false;
		}
	}
	return true;
}

function check(){
	
	//防止点击常用收款账户或者账户分组后，交易码跳转错误
	document.getElementById("AA").innerHTML = "";
	
    var fo=document.forms[0]
    if(document.all.sleteone.options[0].selected){
		alert("请选择付款账号")
		return false
    }
    document.jhform.PAY_ACC_NO.value = document.getElementById("PAY_ACCNO_ID").value;
   //收款账户为手工输入
   var checkFlag = "0";	//校验标志  0-不校验；1-校验 （付款账户为非一户通或者一户通外传时，才需要他行收款信息）
   if(dx_acc_flag!="0"){ //如果是非定向付款
       if(yht_flag=="0"){//如果是一户通，并且是外转，收款账号才为手工输入
          if(document.jhform.TRAN_WAY[0].checked){
          	  if (document.jhform.RECV_ACCNO_IN.value==''){
				  document.jhform.RECV_ACCNO_IN.focus();
				  alert("收款账号不能为空")
				  return false
		      }
		      document.jhform.REC_ACCNO.value = document.jhform.RECV_ACCNO_IN.value.replace(/\s*/g, "");  //去掉格式化空格
		      checkFlag = "1";
          }else{
          	checkFlag = "0";
          }
       }else{//付款账户为非一户通
       	  checkFlag = "1";
       	  if (document.jhform.RECV_ACCNO_IN.value==''){
			  document.jhform.RECV_ACCNO_IN.focus();
			  //alert("收款账号不能为空")
			  $("#RECV_ACCNO_IN").ccbErr("收款账号不能为空");
			  return false
		  }
       	  document.jhform.REC_ACCNO.value = document.jhform.RECV_ACCNO_IN.value.replace(/\s*/g, "");  //去掉格式化空格
       }
       
       //选择跨行转账，则收款账户名称必输
	   if(document.jhform.recv_acc_type[1].checked&&checkFlag=="1"){
	   	  var recvAccNoTmp2 = document.jhform.RECV_ACCNO_IN.value.replace(/\s*/g, "");  //去掉格式化空格
	   	  if(!checkContent(recvAccNoTmp2)){
		     alert("收款账号含有特殊字符，请重新输入");
		     document.getElementById('RECV_ACCNO_IN').focus();
		     return false;
		  }
		  
	      if(document.jhform.RECV_ACC_NAME.value == ""){
	         //alert("请输入收款账户名称");
	         $("#RECV_ACC_NAME").ccbErr("请输入收款账户名称");
	         document.jhform.RECV_ACC_NAME.focus();
	         return false;
	      }
	      document.jhform.DX_RECV_ACCNAME.value = document.jhform.RECV_ACC_NAME.value;
	      /**公转私户名格式不做校验 20140618
	      if(!checkAccountName(document.jhform.RECV_ACC_NAME.value)){
	      	 alert("公转私不定向付款时收款人户名中只允许出现汉字、字母、数字");
	         document.jhform.RECV_ACC_NAME.focus();
	         return false;
	      }
	      **/
	       if(document.jhform.OTHERBANKTYPE[0].checked){
	          if(document.getElementById("hidden_outbank").value==""){
	          	 //alert("请选择他行收款账户开户行");
	          	 $("#outbank").ccbErr("请选择他行收款账户开户行");
	          	 return false;
	          }
	          
	          if(document.getElementById("hidden_province").value==""){
	          	 //alert("请选择省份");
	          	 $("#province").ccbErr("请选择省份");
	          	 return false;
	          }
	          
	          if(document.getElementById("hidden_city").value==""){
	          	 //alert("请选择城市");
	          	 $("#city").ccbErr("请选择城市");
	          	 return false;
	          }
	          
	      	  var selCounter = document.getElementById("hidden_netcounter1").value;
	      	  if(selCounter==""){
	      	     //alert("请选择他行收款账户开户机构");
	      	     $("#netcounter1").ccbErr("请选择他行收款账户开户机构");
	      	     return false;
	      	  }
	      	  
	      	  if(checkCounterData(selCounter)){
	      	  	 alert("您输入的收款账户开户机构不正确，请下拉选择收款账户开户机构");
	      	     return false;
	      	  }
	      	  
	      	  document.jhform.DX_RECV_ACCDEPT.value = document.getElementById("netcounter1").value;
	      	  document.jhform.DX_RECV_BKCODE.value = selCounter;
	      }else{
	      	  var inputCounter = document.getElementById("input_counter");
	      	  if(inputCounter.value==""||inputCounter.value=="请输入XXX银行XXX省XXX市XXX网点"){
	      	     //alert("请输入具体网点名称");
	      	     $("#input_counter").ccbErr("请输入具体网点名称");
	      	     inputCounter.value = "";
	      	     inputCounter.focus();
	      	     return false;
	      	  }
	      	  
	      	  document.jhform.DX_RECV_ACCDEPT.value = inputCounter.value;
	      	  document.jhform.DX_RECV_BKCODE.value = "";
	      }
	   }
   }
   
   //默认付款账户设置标志
   if(document.jhform.DEFAUL_PAYACC.checked){
      if(defPayAccSel=="1"){
      	if(defPayAcc != document.getElementById("PAY_ACCNO_ID").value){
      		document.jhform.ACC_OPER_TYPE.value = "0";  //重新设置默认付款账号
      	}
      }else{
      	document.jhform.ACC_OPER_TYPE.value = "0";  //新设置默认付款账号
      }
   }else{
   	  if(defPayAccSel=="1"&&defPayAcc==document.getElementById("PAY_ACCNO_ID").value){
      	document.jhform.ACC_OPER_TYPE.value = "1";  //取消默认付款账号设置
      }else{
      	
      	document.jhform.ACC_OPER_TYPE.value = "";
      }
   }
   
   //如果收款账户为定向收款账户，则收款账户传确认页面输入域的值为定向账户的值
   if(dx_acc_flag=="0"&&yht_flag!="0"){
   	  if(document.jhform.dx_recv_acc.options.length==0){
   	     alert("请选择收款账户");
   	     return false;
   	  }
   	  
   	  var selDxAccObj = document.getElementById("dx_recv_acc");
   	  var selDxAccVal = selDxAccObj.options[selDxAccObj.selectedIndex].value;
	  var selDxAccArrs = selDxAccVal.split("|");
	  var dxSpecialFlag = "0";
	  if(document.jhform.recv_acc_type[1].checked){
	  	  //对于他行定向收款账户，如果他行户名、开户机构名称、联行号有一个为空，则户名、开户机构允许输入 20141105
	  	  
		  if(selDxAccArrs[1]==""||selDxAccArrs[2]==""){
		  	  dxSpecialFlag = "1";
			  if(document.jhform.RECV_ACC_NAME.value == ""){
		         alert("请输入收款账户名称");
		         document.jhform.RECV_ACC_NAME.focus();
		         return false;
		      }
		      document.jhform.DX_RECV_ACCNAME.value = document.jhform.RECV_ACC_NAME.value;
		      
		       if(document.jhform.OTHERBANKTYPE[0].checked){
		          if(document.getElementById("hidden_outbank").value==""){
		          	 alert("请选择他行收款账户开户行");
		          	 return false;
		          }
		          
		          if(document.getElementById("hidden_province").value==""){
		          	 alert("请选择省份");
		          	 return false;
		          }
		          
		          if(document.getElementById("hidden_city").value==""){
		          	 alert("请选择城市");
		          	 return false;
		          }
		          
		      	  var selCounter = document.getElementById("hidden_netcounter1").value;
		      	  if(selCounter==""){
		      	     alert("请选择他行收款账户开户机构");
		      	     return false;
		      	  }
		      	  
		      	  if(checkCounterData(selCounter)){
		      	  	 alert("您输入的收款账户开户机构不正确，请下拉选择收款账户开户机构");
		      	     return false;
		      	  }
	      	  
		      	  document.jhform.DX_RECV_ACCDEPT.value = document.getElementById("netcounter1").value;
		      	  document.jhform.DX_RECV_BKCODE.value = selCounter;
		      }else{
		      	  var inputCounter = document.getElementById("input_counter");
		      	  if(inputCounter.value==""||inputCounter.value=="请输入XXX银行XXX省XXX市XXX网点"){
		      	     alert("请输入具体网点名称");
		      	     inputCounter.value = "";
		      	     inputCounter.focus();
		      	     return false;
		      	  }
		      	  
		      	  document.jhform.DX_RECV_ACCDEPT.value = inputCounter.value;
		      	  document.jhform.DX_RECV_BKCODE.value = "";
		      }
		  }
	  }else{
	  	   //对于行内定向收款账户，如果户名、开户机构名称有一个为空，则需要确认页面接口查询收款账户信息 20141105
		    if(selDxAccArrs[1]==""||selDxAccArrs[2]==""){
		    	dxSpecialFlag = "1";
		    	document.jhform.SEARCH_RECV_FLAG.value = "";
		    }
	  }
	  
	  //如果定向账户关键信息齐全，则以定向账户信息为准
	  if(dxSpecialFlag=="0"){
	  	  document.jhform.DX_RECV_ACCNAME.value = document.jhform.dx_recv_acc.value.split("|")[1];
	   	  document.jhform.DX_RECV_ACCDEPT.value = document.jhform.dx_recv_acc.value.split("|")[2];
	   	  
	   	  document.jhform.DX_RECV_BKCODE.value = document.jhform.dx_recv_acc.value.split("|")[4];
	   	  document.jhform.SEARCH_RECV_FLAG.value = "1";
	  }
   	  document.jhform.REC_ACCNO.value = document.jhform.dx_recv_acc.value.split("|")[0];
   }else if(dx_acc_flag=="0"&&yht_flag=="0"){//付款账户既是定向付款，又是一户通账户
      if(document.jhform.TRAN_WAY[0].checked){//如果是外转
      	   if(document.jhform.dx_recv_acc.options.length==0){
	   	     alert("请选择收款账户");
	   	     return false;
	   	  }
	   	  
      	  var selDxAccObj = document.getElementById("dx_recv_acc");
	   	  var selDxAccVal = selDxAccObj.options[selDxAccObj.selectedIndex].value;
		  var selDxAccArrs = selDxAccVal.split("|");
		  var dxSpecialFlag = "0";
		  if(document.jhform.recv_acc_type[1].checked){
		  	  //对于他行定向收款账户，如果他行户名、开户机构名称、联行号有一个为空，则户名、开户机构允许输入 20141105
			  if(selDxAccArrs[1]==""||selDxAccArrs[2]==""){
			  	  dxSpecialFlag = "1";
				  if(document.jhform.RECV_ACC_NAME.value == ""){
			         alert("请输入收款账户名称");
			         document.jhform.RECV_ACC_NAME.focus();
			         return false;
			      }
			      document.jhform.DX_RECV_ACCNAME.value = document.jhform.RECV_ACC_NAME.value;
			      
			       if(document.jhform.OTHERBANKTYPE[0].checked){
			          if(document.getElementById("hidden_outbank").value==""){
			          	 alert("请选择他行收款账户开户行");
			          	 return false;
			          }
			          
			          if(document.getElementById("hidden_province").value==""){
			          	 alert("请选择省份");
			          	 return false;
			          }
			          
			          if(document.getElementById("hidden_city").value==""){
			          	 alert("请选择城市");
			          	 return false;
			          }
			          
			      	  var selCounter = document.getElementById("hidden_netcounter1").value;
			      	  if(selCounter==""){
			      	     alert("请选择他行收款账户开户机构");
			      	     return false;
			      	  }
			      	  
			      	  if(checkCounterData(selCounter)){
			      	  	 alert("您输入的收款账户开户机构不正确，请下拉选择收款账户开户机构");
			      	     return false;
			      	  }
	      	  
			      	  document.jhform.DX_RECV_ACCDEPT.value = document.getElementById("netcounter1").value;
			      	  document.jhform.DX_RECV_BKCODE.value = selCounter;
			      }else{
			      	  var inputCounter = document.getElementById("input_counter");
			      	  if(inputCounter.value==""||inputCounter.value=="请输入XXX银行XXX省XXX市XXX网点"){
			      	     alert("请输入具体网点名称");
			      	     inputCounter.value = "";
			      	     inputCounter.focus();
			      	     return false;
			      	  }
			      	  
			      	  document.jhform.DX_RECV_ACCDEPT.value = inputCounter.value;
			      	  document.jhform.DX_RECV_BKCODE.value = "";
			      }
			  }
		  }else{
		  	   //对于行内定向收款账户，如果户名、开户机构名称有一个为空，则需要确认页面接口查询收款账户信息 20141105
			    if(selDxAccArrs[1]==""||selDxAccArrs[2]==""){
			    	dxSpecialFlag = "1";
			    	document.jhform.SEARCH_RECV_FLAG.value = "";
			    }
		  }
	  
          document.jhform.REC_ACCNO.value = document.jhform.dx_recv_acc.value.split("|")[0];
          //如果定向账户关键信息齐全，则以定向账户信息为准
          if(dxSpecialFlag=="0"){
          	  document.jhform.DX_RECV_ACCNAME.value = document.jhform.dx_recv_acc.value.split("|")[1];
		   	  document.jhform.DX_RECV_ACCDEPT.value = document.jhform.dx_recv_acc.value.split("|")[2];
		   	  document.jhform.DX_RECV_BKCODE.value = document.jhform.dx_recv_acc.value.split("|")[4];
		   	  document.jhform.SEARCH_RECV_FLAG.value = "1";
          }
      }
   }
   
   document.jhform.PAY_SUB_ACCNO.value = "";
   //document.jhform.PAY_SUB_ACCNAME.value = "";
   document.jhform.RECV_SUB_ACCNO.value = "";
   //document.jhform.RECV_SUB_ACCNAME.value = "";
   if(yht_flag=="0"){
		if(document.jhform.TRAN_WAY[1].checked && document.jhform.pay_sub1.options[0].selected){
			document.jhform.pay_sub1.focus();
			alert("请选择付款账号的二级账户");
			return false;
		}
		if(document.jhform.pay_sub1.selectedIndex > 0){
			var EFS_ACCT_SEQ = document.jhform.pay_sub1.value.split("|")[1];
			if(EFS_ACCT_SEQ == '0002' && document.jhform.pay_sub2.options.length == 1 ){
				alert("您选择的付款账户二级管理账户无可用活期账户，请重新选择");
				document.jhform.pay_sub1.focus();
				return false;
			}
		}

		if(document.jhform.pay_sub2.options.length > 1 && document.jhform.pay_sub2.options[0].selected){
			document.jhform.pay_sub2.focus();
			alert("请选择付款账号的三级账户");
			return false;
		}
		var pay_subAcc1 = document.jhform.pay_sub1;
		var pay_subAcc2 = document.jhform.pay_sub2;
		var pay_sub_acc = "";
		var pay_sub_name = "";
		if(pay_subAcc2.options.length > 1 && pay_subAcc2.selectedIndex > 0){
			pay_sub_acc = pay_subAcc2.value.split("|")[0];
			pay_sub_name = pay_subAcc2.value.split("|")[2];
		}else{
			if(pay_subAcc1.selectedIndex > 0){
				pay_sub_acc = pay_subAcc1.value.split("|")[0];
				pay_sub_name = pay_subAcc1.value.split("|")[2];
			}
		}
		document.jhform.PAY_SUB_ACCNO.value = pay_sub_acc;
		document.jhform.PAY_SUB_ACCNAME.value = pay_sub_name;
	}
	if(yht_flag=="0" && document.jhform.TRAN_WAY[1].checked){ 
		if(document.jhform.recv_sub1.options[0].selected){
			document.jhform.recv_sub1.focus();
			alert("请选择收款账号的二级账户");
			return false;
		}
		if(document.jhform.recv_sub1.selectedIndex > 0){
			var EFS_ACCT_SEQ = document.jhform.recv_sub1.value.split("|")[1];
			if(EFS_ACCT_SEQ == '0002' && document.jhform.recv_sub2.options.length == 1 ){
				document.jhform.recv_sub1.focus();
				alert("您选择的收款账户二级管理账户无可用活期账户，请重新选择");
				return false;
			}
		}
		if(document.jhform.recv_sub2.options.length > 1 && document.jhform.recv_sub2.options[0].selected){
			document.jhform.recv_sub2.focus();
			alert("请选择收款账号的三级账户");
			return false;
		}

		var recv_subAcc1 = document.jhform.recv_sub1;
		var recv_subAcc2 = document.jhform.recv_sub2;
		if(recv_subAcc2.options.length > 1 && recv_subAcc2.selectedIndex > 0){
			recv_sub_acc = recv_subAcc2.value.split("|")[0];
			recv_sub_name = recv_subAcc2.value.split("|")[2];
		}else{
			if(recv_subAcc1.selectedIndex > 0){
				recv_sub_acc = recv_subAcc1.value.split("|")[0];
				recv_sub_name = recv_subAcc1.value.split("|")[2];
			}
		}
		document.jhform.REC_ACCNO.value = document.jhform.PAY_ACCNO.value;
		document.jhform.RECV_SUB_ACCNO.value = recv_sub_acc;
		document.jhform.RECV_SUB_ACCNAME.value = recv_sub_name;
		//document.jhform.SEARCH_RECV_FLAG.value = "1";//内转-无需接口查收方信息
	}
   
   if(document.getElementById("IS_FUKUAN").checked){//选择了定条件付款
   	   if(document.forms[0]['PAY_TYPE_FLAG'].value==""){
   	      $("#PAY_TYPE_FLAG").ccbErr("请选择定条件付款类型");
		  return false;
   	   }
	   if(document.forms[0]['PAY_TYPE_FLAG'].value=="2")        //定余额
	   {
		  if (document.jhform.AM.value==''){
			  document.jhform.AM.focus();
			  alert("金额不能为空")
			  return false
	   	  }
		  if(document.forms[0]["AM"].value=="0")
		  {
			alert("金额不能为0！");
			return false;
		  }
	   }else if(document.forms[0]['PAY_TYPE_FLAG'].value=="1"){  //零余额
	
	   }else if(document.forms[0]['PAY_TYPE_FLAG'].value=="4"){  //比例系数
	       var potion = document.jhform.PROPOTION.value;
	       if(potion==""){
	          alert("比例系数不能为空");
	          document.jhform.PROPOTION.focus();
	          return false;
	       }else if(potion=="0"){
	       	  alert("比例系数不能为零");
	          document.jhform.PROPOTION.focus();
	          return false;
	       }else if(!isInteger1(potion)){
	          alert("比例系数应为0-100之间的整数");
	          document.jhform.PROPOTION.focus();
	          return false;
	       }
	   }
	   
	   document.jhform.PAY_TYPE.value = document.jhform.PAY_TYPE_FLAG.value;
   }else{//定金额
       if (document.jhform.AM.value==''){
		  document.jhform.AM.focus();
		  //alert("金额不能为空");
		  $("#AM_ID").ccbErr("金额不能为空");
		  return false;
   	  }
   	  //防止传过去的金额没值 20140415
   	  if(document.jhform.AMOUNT.value==''){
   	  	  IsAmtById('AM_ID','AMOUNT_ID','金额');
   	  }
   	  if(perTranLimit!=null&&perTranLimit!=""){
         if(parseFloat(perTranLimit)<parseFloat(document.jhform.AMOUNT.value)){
			alert("转账金额不能超过操作员单笔限额！");
			return false;
	     }
      }
   	  document.jhform.PAY_TYPE.value = "0";
   }
   
   var selUse = document.jhform.use1.value;
   if(selUse==""||selUse=="请选择或输入用途"){
		//alert("请选择或输入用途！")
		$("#use1").ccbErr("请选择或输入用途！");
		fo.use1.focus()
		return false
	}else if(!getLength()){
		return false;
	}
	
	var useChkResult = checkSpecialChar(selUse);
    if(useChkResult!=""){
       alert("用途中包含系统不兼容字符（"+useChkResult+"），请重新输入或设置");
       document.jhform.use1.focus();
       return false;
    }
   
	if(document.getElementById("useComm").checked){
		if(deftuseSel=="1"){
			if(deftuse!=selUse){
				var newUseFlag = "1";
				for(var i=0; i<useData.data.length-1; i++){
					if(selUse==useData.data[i].id) {
						newUseFlag = "0";
						break;
					}
				}
				if(newUseFlag=="1"){
				   document.jhform.USE_OPER_TYPE.value = "2";       //新设置默认用途，并且该默认用途为新手工输入的
				}else{
					document.jhform.USE_OPER_TYPE.value = "0";      //重新设置默认用途
				}
			}else{
				
				if(deftuse==selUse){
					document.jhform.USE_OPER_TYPE.value = ""; 
				}
			}
		}else{
			document.jhform.USE_OPER_TYPE.value = "0";           //新设置默认用途
			var newUseFlag = "1";
			for(var i=0; i<useData.data.length-1; i++){
				if(selUse==useData.data[i].id) {
					newUseFlag = "0";
					break;
				}
			}
			if(newUseFlag=="1"){
				document.jhform.USE_OPER_TYPE.value = "2";           //新设置默认用途，并且该默认用途为新手工输入的
			}
		}
	}else{
		if(deftuseSel=="1"&&deftuse==selUse){
			document.jhform.USE_OPER_TYPE.value = "1";  	     //取消默认用途设置
		}
	}
	
	if(ys_acc_flag=="0"){
		for(var m=0;m<document.jhform.BDGT_SBJ_NM.options.length;m++){
			if(m>0){
				if(document.jhform.BDGT_SBJ_NM.options[m].selected){
					document.getElementsByName("BDGT_SBJ_CODE")[m-1].disabled = false;
				}else{
					document.getElementsByName("BDGT_SBJ_CODE")[m-1].disabled = true;
				}
			}
		}		
	}
	
	//开通了定时定频制单设置，才做定时定频交易判断
	var timeSepcialFlag = "0";
	if(openTimeFlag=="1"){
		var strDay = new Date();
		strTime = getmyselfDate(strDay.getHours()) + "" + getmyselfDate(strDay.getMinutes());  //客户端时间
		strDay =strDay.getFullYear()+''+getmyselfDate(strDay.getMonth()+1)+''+getmyselfDate((strDay.getDate()));
		
		//定时定频设置信息
		if(document.getElementById("EXEC_TYP").checked){
		
			//单次，定时执行
			if(document.getElementsByName("BOOK_TYP")[0].checked){
				var setDate = document.getElementById("date").value;
				if(setDate==""){
					alert("请输入定时执行日期");
					document.getElementById("date").focus();
					return false;
				}
				
				if(!isCorrectDate(setDate)){
					alert("输入的定时执行日期格式不对");
					document.getElementById("date").focus();
					return false;
				}
				
				if(setDate<strDay){
					alert("设置日期不能小于当前日期");
					document.getElementById("date").focus();
					return false;
				}else if(setDate==strDay){
					var strSetTime = document.getElementById("HH").value + document.getElementById("MM").value;
					if(strSetTime<strTime){
						alert("设置时间不能小于当前时间");
						return false;
					}
				}
				document.jhform.BOOK_DATE.value = setDate.replace(/-/g,"");
				
			}else if(document.getElementsByName("BOOK_TYP")[1].checked){ //循环，定频执行
				if(document.getElementsByName("REP_TYP")[1].checked||document.getElementsByName("REP_TYP")[2].checked){
					var repDate = document.jhform.REP_DATE.value;
					if(repDate==""){
						alert("请输入循环日期");
						document.jhform.REP_DATE.focus();
						return false;
					}
					
					if(document.getElementsByName("REP_TYP")[1].checked){
						if(!testDate(repDate,toCompareMapWeek)){
							alert("请输入正确的循环日期");
							document.jhform.REP_DATE.focus();
							return false;
						}
					}else{
						if(!testDate(repDate,toCompareMapMonth)){
							alert("请输入正确的循环日期");
							document.jhform.REP_DATE.focus();
							return false;
						}
						timeSepcialFlag = "1";
					}
					
				}
			} 
			
			//定时执行时间：HHMMSS
			var setTime = document.getElementById("HH").value + document.getElementById("MM").value + "00";
			document.jhform.BOOK_TIME.value = setTime;
		}
	}
	
	if(memoFlag=="0"){
		try{
			//付款账户定制信息输入要素判断
			 var payFlag = "0"; //客户是否选择输入付款账户定制信息
			 for(var i=0;i<signNum;i++){
			 	payInputObj = document.getElementById("Prsz_Inf_"+(i+1));
			 	payInputVale = document.getElementById("Prsz_Inf_"+(i+1)).value;
			 	if(payInputVale!=""){
			 		payFlag = "1";
			 		var lenVal = payInputVale;
			 		var payInputLen = getInputLength(payInputVale);
			 		if(payInputLen>payInfoLength[i]){ //长度判断
			 			alert(payInfoName[i] + "长度不能超过" + payInfoLength[i] + "个字符");
			 			payInputObj.focus();
			 			return false;
			 		}
			 		if(payInfoType[i]=="N"){ //数字整型判断
			 			if(!isInteger(payInputVale)){
			 				alert(payInfoName[i] + "应为整数");
				 			payInputObj.focus();
				 			return false;
			 			}
			 		}
			 		if(payInfoType[i]=="D"){//数字金额型判断
			 			if(isAmount(payInputVale)=="1"){
			 				alert(payInfoName[i] + "输入金额必须为标准金额");
				 			payInputObj.focus();
				 			return false;
			 			}else if(isAmount(payInputVale)=="2"){
			 				alert(payInfoName[i] + "金额小数部分不能多于2位！");
				 			payInputObj.focus();
				 			return false;
			 			}
			 		}
			 		//为了保证明细查询时获取定制信息能正常查询，对客户输入的信息均去掉空格
			 		//payInputArr[i].value = payInputArr[i].value.replace(/( |[\s　])/g, "");
			 	}
			 }
			 
			 //客户选择提交付款账户定制信息后，需要对必填项进行判断
			 if(payFlag == "1"){
			 	 for(i=0;i<signNum;i++){
			 	 	payInputObj = document.getElementById("Prsz_Inf_"+(i+1));
			 		payInputVale = document.getElementById("Prsz_Inf_"+(i+1)).value;
				 	if(payInfoMust[i]=="1"&&payInputVale==""){
			 			alert(payInfoName[i] + "不能为空");
			 			payInputObj.focus();
			 			return false;
				 	}
				 }
			 }
		}catch(e){
		
		}
   }
   
   if(timeSepcialFlag=="1"){
   	  specialDate(repDate);
	  if(subStatus=="1"){
		 return false;
	  }
   }
   
    var payAccNo = document.getElementById("PAY_ACCNO_ID").value;
    var ISCCB = "";
    if(document.getElementsByName("recv_acc_type")[0].checked){
    	ISCCB = "0";
    }else{
    	ISCCB = "1";
    }
    var recvAccNo = document.jhform.RECV_ACCNO_IN.value.replace(/\s*/g, "");
    var recvAccNm = document.getElementById("RECV_ACC_NAME").value;
    var useDesc =  selUse;
    var inputBankType = "";
    if(document.jhform.OTHERBANKTYPE[0].checked){
    	inputBankType = "1";
    }else{
    	inputBankType = "0";
    }
    var vProvince = document.jhform.SHOW_PROVINCE.value;
    var vCityCode = document.jhform.CITY.value;
    var vUbankNo = document.getElementById("hidden_netcounter1").value;
    var inputCounter = document.getElementById("input_counter").value;
    
    var payType = document.jhform.PAY_TYPE.value;
    var vAmount = document.getElementById("AMOUNT_ID").value;
    var vTrigAmt = document.getElementById("CHUFA_ID").value;
    var vPrecision = document.jhform.PRECISION.value;
    var vPropotion = document.jhform.PROPOTION.value;
    
    var vPaySubAcc = document.jhform.PAY_SUB_ACCNO.value;
    var vRecvSubAcc = document.jhform.RECV_SUB_ACCNO.value;
    
    var vPaySeqNo = document.jhform.PAY_SEQ_NO.value;
    if(vPaySeqNo!=""&&DataLength(vPaySeqNo)>60){
    	alert("支付流水号最多60个字符或者30个汉字");
    	return false;
    }
    
    var vEXEC_TYP = "";
    var vBOOK_TYP = '';
    var vREP_TYP = '';
	var	vREP_DATE = "";
	var vBOOK_DATE ="";
	var vBOOK_TIME = "";
	var vDEF_NAME = "";
    
    if(document.getElementById("EXEC_TYP").checked){
    	vEXEC_TYP = document.getElementById("EXEC_TYP").value;
    }
    vBOOK_TYP = '';
    if(document.jhform.BOOK_TYP[0].checked){
    	vBOOK_TYP = "0";
    }else if(document.jhform.BOOK_TYP[1].checked){
    	vBOOK_TYP = "1";
    }
    vREP_TYP = '';
    if(document.getElementsByName("REP_TYP")[0].checked){
    	vREP_TYP = "1";
    }else if(document.getElementsByName("REP_TYP")[1].checked){
    	vREP_TYP = "2";
    }else if(document.getElementsByName("REP_TYP")[2].checked||document.getElementsByName("REP_TYP")[3].checked){
    	vREP_TYP = "3";
    }
	vREP_DATE = document.jhform.REP_DATE.value;
	
	vBOOK_DATE = document.jhform.BOOK_DATE.value;
	vBOOK_TIME = document.jhform.BOOK_TIME.value;
	vDEF_NAME = document.jhform.DEF_NAME.value;
	
	
	var trdTyp = "";
	
	if(trdTyp=="2"){
		document.jhform.TRD_TYP.value = "0";
	}else if(trdTyp=="0"){
		trdTyp = "2";	//单据修改错误页面
	}else{
		trdTyp = "1";	//默认值1  表示制单错误页面
	}
	
	var errUrl = document.jhform.errURL.value+'&PAY_ACC_NO='+payAccNo+'&recv_acc_type='+ISCCB+'&OTHERBANKTYPE='+inputBankType;
	errUrl = errUrl+'&ACCP_ACCT_NO='+recvAccNo+'&PROVICE='+vProvince+'&CITY='+vCityCode+'&NETCOUNTER='+vUbankNo;
	errUrl = errUrl+'&USEOF_DESC='+useDesc;
	errUrl = errUrl+'&ACCP_ACC_NAME='+recvAccNm+'&input_counter='+inputCounter;
	errUrl = errUrl+'&PAY_TYPE='+payType+'&ATM='+vAmount+'&TRRIGER_BALANCE='+vTrigAmt+'&PRECISION='+vPrecision+'&PROPOTION='+vPropotion;
	errUrl = errUrl+'&PAY_SUB_ACCNO='+vPaySubAcc+'&RECV_SUB_ACCNO='+vRecvSubAcc+'&PAY_SEQ_NO='+vPaySeqNo;
	errUrl = errUrl+'&EXEC_TYP='+vEXEC_TYP+'&BOOK_TYP='+vBOOK_TYP+'&BOOK_DATE='+vBOOK_DATE+'&BOOK_TIME='+vBOOK_TIME+'&DEF_NAME='+vDEF_NAME;
	errUrl = errUrl+'&REP_TYP='+vREP_TYP+'&REP_DATE='+vREP_DATE;
	errUrl = errUrl+'&FLOW_NO='+"";
	errUrl = errUrl+'&PROCESS_INST_ID='+""+'&TASK_INST_ID='+"";
	errUrl = errUrl+'&P_TPL_NO='+""+'&TRD_TYP='+trdTyp;
	
	document.jhform.errURL.value=errUrl;
		
   return true
}

function DataLength(fData){
	var intLength=0
	for (var i=0;i<fData.length;i++){
	if ((fData.charCodeAt(i) < 0) || (fData.charCodeAt(i) > 255))
	intLength=intLength+2
	else
	intLength=intLength+1 
	}
	return intLength
}


function showDxHrefAndYhtHref(){
	if(dx_acc_flag=="0"){
		if(dxMaxFlag!=null&&dxMaxFlag!=""&&parseInt(dxMaxFlag,10)>200){
			document.getElementById("dxHref").style.display="";
		}else{
			document.getElementById("dxHref").style.display="none";
		}
	}
	
	if(yht_flag=="0"){
		if(yhtPageTotal!=null&&yhtPageTotal!=""&&parseInt(yhtPageTotal,10)>1){
			document.getElementById("yhtHref").style.display="";
		}else{
			document.getElementById("yhtHref").style.display="none";
		}
	}
}

function loads(){
	//查询定向收款账户时报错，页面显示错误提示信息，但允许客户选择其他付款账户
	if(tipError!=""){
		document.jhform.RECV_ACCNO_IN.disabled = true;
	}else{
		document.jhform.RECV_ACCNO_IN.disabled = false;
	}
	document.getElementById("tipErr").innerText = tipError;
	
   Menu_Change2('sleteone','PAY_ACCNO_ID',acc_value,acc_show);
   sele4.style.display = "";

   payAccArray = document.getElementById("PAY_ACCNO_ID");
   //选择默认付款账户
	if(defPayAcc!=""){
		for(var i=0;i<payAccArray.options.length;i++){
			if(defPayAcc==payAccArray.options[i].value){
				payAccArray.options[i].selected = true;
				document.jhform.DEFAUL_PAYACC.checked = true;
				defPayAccSel = "1";
				break;
			}
		}
	}
	
	//定向收款账户判断
	if(dx_acc_flag=="0"){//选择的付款账户为定向付款账户
		dxAccsChange();
		showDxHrefAndYhtHref();//动态展示定向收款账户分页查询链接
	}
	
	//选择的付款账户为一户通子账户
	if(yht_flag=="0"){
		initSubAcc();
		sele1_1.style.display ='block';
		sele1_2.style.display ='block';
		showDxHrefAndYhtHref();//动态展示一户通子账户分页查询链接
	}
	
	//预约次日选项通过调用页面控制是否显示
	
	document.getElementById("yycr_set").style.display="";
	
	
	//从修改单据列表跳转过来,初始化相关数据
	var trdTyp = ''; //0-单据修改；1-确认返回;2-修改确认页面返回
	if(trdTyp=='0'||trdTyp=='1'||trdTyp=='2'){
		var modifyAccNo = '';
		//对付款账户列表循环匹配，选中修改单据付款账号
		for(var j=0;j<payAccArray.options.length;j++){
			if(modifyAccNo==payAccArray.options[j].value){
				payAccArray.options[j].selected = true;
			}
		}
		
		if(yht_flag=="0"){
			var back_pay_subacc = '';
			var back_recv_subacc = '';
			var parent_pay_subacc ='';
			var parent_recv_subacc ='';
			var pay_subAcc1= document.jhform.pay_sub1;
			var pay_subAcc2= document.jhform.pay_sub2;
			for(var k2 = 0 ; k2 < subAcc2.length ; k2++){ 
				if(subAcc2[k2][0] == back_pay_subacc){
					parent_pay_subacc = subAcc2[k2][4];
					break;
				}
			}
			if(parent_pay_subacc != ''){
				pay_subAcc2.style.display = '';
				for(var k3 = 1 ; k3 < pay_subAcc1.length ; k3++){
					if(pay_subAcc1.options[k3].value.split("|")[0] == parent_pay_subacc){
						pay_subAcc1.options[k3].selected = true;
						break;
					}
				}
				selPaySubAcc();
				for(var k4 = 1 ; k4 < pay_subAcc2.length ; k4++){
					if(pay_subAcc2.options[k4].value.split("|")[0] == back_pay_subacc){
						pay_subAcc2.options[k4].selected = true;
						updateSubBlance();
						break;
					}
				}
			}else{
				for(var k3 = 1 ; k3 < pay_subAcc1.length ; k3++){
					if(pay_subAcc1.options[k3].value.split("|")[0] == back_pay_subacc){
						pay_subAcc1.options[k3].selected = true;
						updateSubBlance();
						break;
					}
				}
			}
			
			if(back_recv_subacc.length!=0){ 
				document.jhform.TRAN_WAY[1].checked = true;
				selTranWay()
				document.jhform.RECV_ACCNO_IN.value='';
				var recv_subAcc1= document.jhform.recv_sub1;
				var recv_subAcc2= document.jhform.recv_sub2;
				for(var m1 = 0 ; m1 < subAcc2.length ; m1++){ 
					if(subAcc2[m1][0] == back_recv_subacc){
						parent_recv_subacc = subAcc2[i][4];
						break;
					}
				}
				if(parent_recv_subacc != ''){
					recv_subAcc2.style.display = '';
					for(var m2 = 1 ; m2 < recv_subAcc1.length ; m2++){
						if(recv_subAcc1.options[m2].value.split("|")[0] == parent_recv_subacc){
							recv_subAcc1.options[m2].selected = true;
							break;
						}
					}
					selRecvSubAcc();
					for(var m3 = 1 ; m3 < recv_subAcc2.length ; m3++){
						if(recv_subAcc2.options[m3].value.split("|")[0] == back_recv_subacc){
							recv_subAcc2.options[m3].selected = true;
							break;
						}
					}
				}else{
					for(var m1 = 1 ; m1 < recv_subAcc1.length ; m1++){
						if(recv_subAcc1.options[m1].value.split("|")[0] == back_recv_subacc){
							recv_subAcc1.options[m1].selected = true;
							break;
						}
					}
				}
			}
		}
		
		var recvBankType = '';
		var recvAccNoTmp = '';
		document.jhform.RECV_ACCNO_IN.value = formatAcc2(recvAccNoTmp);
		
		
		if(recvBankType=="1"||recvBankType=="02"||recvBankType=="03"){
			document.jhform.recv_acc_type[1].checked = true;
			dxAccsChange();
			
			if(dx_acc_flag!="0"){
				document.getElementById("RECV_ACC_NAME").value = '';
				var outbankType = '';
				
				if(outbankType=="0"){
					document.jhform.OTHERBANKTYPE[1].checked = true;
					swtype2();
					document.getElementById("input_counter").value = '';
					document.getElementById("input_counter").style.color='#000000';
				}else{
					var vProvNm = '';
					var vCityNm = '';
					var vUbankNm = '';
					var vUbankCode = '';
					var vCityCode = '';
					setChooseCounter(vProvNm,vCityNm,vUbankNm,vCityCode,vUbankCode);
				}
			}
		}
		
		
		if(dx_acc_flag=="0"){
			for(var k1=0;k1<document.getElementById("dx_recv_acc").options.length;k1++){
				if(recvAccNoTmp == document.getElementById("dx_recv_acc").options[k1].value.split("|")[0]){
					document.getElementById("dx_recv_acc").options[k1].selected = true;
					selDxOtherAcc();
					break;
				}
			}
		}
		
		var amount = '';
		var payType = '';
		//付款类型1位长度判断是返回（页面定义）；2位长度判断是修改（报文返回）
		if(pay_condition_flag=="0"){
			if(payType=="1"||payType=="02"){//零余额
				document.getElementById("IS_FUKUAN").checked = true;
				selPayCondition();
				document.jhform.PAY_TYPE_FLAG.value="1";
				payConditionAmt();
				document.jhform.TRIAMOUNT.value = '';
				IsAmtById('TRIAMOUNT_ID','CHUFA_ID','金额');
			}else if(payType=="2"||payType=="01"){//定余额
				document.getElementById("IS_FUKUAN").checked = true;
				selPayCondition();
				document.jhform.PAY_TYPE_FLAG.value="2";
				payConditionAmt();
				document.jhform.TRIAMOUNT.value = '';
				IsAmtById('TRIAMOUNT_ID','CHUFA_ID','金额');
				document.getElementById("AM_ID").value = amount;
				IsAmtById('AM_ID','AMOUNT_ID','金额');
			}else if(payType=="3"||payType=="04"){//取整
				document.getElementById("IS_FUKUAN").checked = true;
				selPayCondition();
				document.jhform.PAY_TYPE_FLAG.value="3";
				payConditionAmt();
				var precision = '';
				for(var k=0;k<document.jhform.PRECISION.options.length;k++){
					if(precision==document.jhform.PRECISION.options[k].value){
						document.jhform.PRECISION.options[k].selected = true;
						break;
					}
				}
				document.jhform.TRIAMOUNT.value = '';
				IsAmtById('TRIAMOUNT_ID','CHUFA_ID','金额');
			}else if(payType=="4"||payType=="03"){//定比例
				document.getElementById("IS_FUKUAN").checked = true;
				selPayCondition();
				document.jhform.PAY_TYPE_FLAG.value="4";
				payConditionAmt();
				document.jhform.TRIAMOUNT.value = '';
				IsAmtById('TRIAMOUNT_ID','CHUFA_ID','金额');
				document.jhform.PROPOTION.value = '';
			}else{//定金额
				if(amount!=""){
					document.getElementById("AM_ID").value = amount;
					IsAmtById('AM_ID','AMOUNT_ID','金额');
				}
			}
		}
		else{//定金额
			if(amount!=""){
				document.getElementById("AM_ID").value = amount;
				IsAmtById('AM_ID','AMOUNT_ID','金额');
			}
		}
		
		
		if(openTimeFlag=="1"&&""=="1"){ //如果原单据是预约执行，则页面默认勾选定时定频复选框
			document.getElementById("EXEC_TYP").checked = true;
			isTimeDeal(document.getElementById("EXEC_TYP").checked); 
			
			if(""=="0"){ //定时
				document.jhform.BOOK_TYP[0].checked = true;
				checkdslx(0);
				document.getElementById("date").value = '';
			}else{ //定频
				document.jhform.BOOK_TYP[1].checked = true;
				checkdslx(1);
				var repType = "";
				if(repType=="1"){//每天
					document.getElementsByName("REP_TYP")[0].checked = true;
					checkzxrq(1);
				}else if(repType=="2"){//每周
					document.getElementsByName("REP_TYP")[1].checked = true;
					checkzxrq(2);
					document.jhform.REP_DATE.value = '';
				}else if(repType=="3"){//每月
					if(''=="32"){
						document.getElementsByName("REP_TYP")[3].checked = true;
						document.getElementById("REP_DATE").value="32";
					}else{
						document.getElementsByName("REP_TYP")[2].checked = true;
						checkzxrq(3);
						document.jhform.REP_DATE.value = '';
					}
				}
				
			}
			var bookTime = "";
			if(!(bookTime=="000000"||bookTime=="")&&bookTime.length==6){
				bookTimeHH = bookTime.substring(0,2);
				bookTimeMM = bookTime.substring(2,4);
				var vHour = document.getElementById("HH");
				var vMinute = document.getElementById("MM");
				for(var h=0;h<vHour.length;h++){
					if(bookTimeHH == vHour[h].value){
						vHour[h].selected = true;
						break;
					}
				}
				
				for(var m=0;m<vMinute.length;m++){
					if(bookTimeMM == vMinute[m].value){
						vMinute[m].selected = true;
						break;
					}
				}
			}
			//定制账户名称
			document.getElementById("dz_info").value = '';
		}
		
	}
	if(pay_condition_flag!="0"){
		document.getElementById("pay_condition").style.display="none";
	}
	
	//开通定制信息则加载相应方法
	if(parseInt(signNum,10)>0){
		destineInfoDisplay(payInfoName);
	}
	
	selectBoxTool.initDOMLength(document.getElementById("outbank"),"220");
	selectBoxTool.initDOMLength(document.getElementById("province"),"220");
	selectBoxTool.initDOMLength(document.getElementById("city"),"220");
	
	$("#tipShow").ccbHelp("签约及授权账户包括登记在您名下的账户以及他人通过企业网银授权给您使用的账户");
	$("#tipShow2").ccbHelp("如需向“杭州银行”等城市商业银行转账，请在开户行中选择或输入“城市商业银行”。如需向“北京农村商业银行”等农村商业银行转账，请在开户行中选择或输入“农村信用社（含北京农村商业银行）”");
	
}

function getLength()
{
	var s = document.jhform.use1.value
	//alert(s)
	var len = 0;
	for(i=0;i<s.length;i++)
	{
	  var c = s.substr(i,1);
	  var ts = escape(c);
	  if(ts.substring(0,2) == "%u")
	{
	   len+=2;
	  } else
	{
	   len+=1;
	  }
	}
	if (len>100)
	{
	 alert("用途最多100个字符或50个汉字")
	 document.jhform.use1.focus()
	 return false
	}
	return true
}

//**************账号分组排序****************
function Menu_Change2(srcId,targetId,code,name,NunN)
{
	var num,n, i, m ,k;
	m = document.getElementById(srcId).selectedIndex-1;
	var targetElement = document.getElementById(targetId);
	
	n = targetElement.length;

	for(i = n - 1; i >= 0; i--)
		targetElement.options[i] = null;
	if (m>=0) {
		for(i = 0; i < code[m].length; i++){
			NewOptionName = new Option(name[m][i], code[m][i]);
			targetElement.options[i] = NewOptionName;
		}
		try{
			targetElement.options[0].selected = true;
		}catch(e){
		}
	}
}
//***********选择账号排序方式***************
function Sort_Change(elementId,str_no,str_name,name)
{
  	var n, i, m ,k;
  	var countTmp;
  	var accIndex;
 	var sort_type=new Array();
 	var temp0 = new Array();
 	var temp1 = new Array();
 	var temp2 = new Array();
 	
 	//temp1 = str_no ;//accValue;
 	//temp2 = str_name;//accName;后面再加上下标，以区分户名相同时的比较
	 	
	m = document.getElementById(elementId).selectedIndex;
	accIndex = document.getElementById('sleteone').selectedIndex; 
	
	for(var count0=0;count0<str_no[accIndex-1].length;count0++){
	    if(count0<10){
	      countTmp="00"+count0;  //由于业务需要支持200个账户，所以下标设计成3位
	    }else if(count0>=10&&count0<100){
	      countTmp="0"+count0;
	    }else{
	      countTmp=count0;
	    }
	 	temp0[count0] = str_no[accIndex-1][count0]+countTmp;
	}
	
	for(var count1=0;count1<str_no[accIndex-1].length;count1++){
	 	if(count1<10){
	      countTmp="00"+count1;
	    }else if(count1>=10&&count1<100){
	      countTmp="0"+count1;
	    }else{
	      countTmp=count1;
	    }
	 	temp1[count1] = str_no[accIndex-1][count1]+countTmp;
 	}
 	
 	for(var count2=0;count2<str_name[accIndex-1].length;count2++){
	 	if(count2<10){
	      countTmp="00"+count2;
	    }else if(count2>=10&&count2<100){
	      countTmp="0"+count2;
	    }else{
	      countTmp=count2;
	    }
 		temp2[count2] = str_name[accIndex-1][count2]+countTmp;
 	}
	 	
	if(accIndex!=0){
	    if(m==0){
	      sort_type=temp0;
	    }else if(m==1){
	  	 sort_type=temp1.sort();
		}else {
	   	 sort_type=temp2.sort();
	   	 sort_type=sort_type.sort(function(a,b){return a.localeCompare(b)});
		}
	
		var sortElement = document.getElementById('PAY_ACCNO_ID');
		n = sortElement.length
	
		if (m>=0) {
			for(i = n - 1; i >= 0; i--)
				sortElement.options[i] = null;
			for(i = 0; i < sort_type.length; i++){
				var sortInf_Tmp = sort_type[i].substring(0,sort_type[i].length-3);//帐号或户名
				var indexTmp = sort_type[i].substring(sort_type[i].length-3);
				indexTmp=parseInt(indexTmp,10);
				
				NewOptionName = new Option(name[accIndex-1][indexTmp], str_no[accIndex-1][indexTmp]);
				
				sortElement.options[i] = NewOptionName;
		 	}
			sortElement.options[0].selected = true;
		}
	}
}

//是否选择定条件付款
function selPayCondition(){
	if(document.getElementById("IS_FUKUAN").checked){
		dtj.style.display="";
		cfje.style.display="";
		document.forms[0]["TRRIGER_BALANCE"].value="";//置触发金额为空
		document.forms[0]["TRIAMOUNT"].value="";
		
		document.forms[0]["AM"].value="0.00";
		document.forms[0]["AMOUNT"].value="0";
		document.forms[0]["AM"].disabled=true;
		QZJD_TR.style.display = 'none';
		BLTJ_TR.style.display = 'none';
		
		payConditionAmt();
	}else{
		dtj.style.display='none';
		QZJD_TR.style.display = 'none';
		BLTJ_TR.style.display = 'none';
		amount_tr.style.display = '';
		bigAmount_tr.style.display = '';
		document.forms[0]["AM"].value="";
		document.forms[0]["AMOUNT"].value="";
		document.forms[0]["AM"].disabled=false;
		document.getElementById("showAmount").innerText = "金额：";
		document.getElementById("bigChineseShow").innerText = '';
	}
}

function payConditionAmt()
{
	if(document.forms[0]['PAY_TYPE_FLAG'].value=="1")//零余额
	{	
        document.forms[0]["TRRIGER_BALANCE"].value="";//置触发金额为空
		document.forms[0]["TRIAMOUNT"].value="";
		
		document.forms[0]["AM"].value="0.00";
		document.forms[0]["AMOUNT"].value="0";
		document.forms[0]["AM"].disabled=true;
		QZJD_TR.style.display = 'none';
		BLTJ_TR.style.display = 'none';
		document.getElementById("showAmount").innerText = "余额：";
	}else if(document.forms[0]['PAY_TYPE_FLAG'].value=="3")//取整
	{
		//取整
		
		document.forms[0]["TRRIGER_BALANCE"].value="";//置触发金额为空
		document.forms[0]["TRIAMOUNT"].value="";
		
		document.forms[0]["AM"].value="0";
		document.forms[0]["AMOUNT"].value="0";
		document.forms[0]["AM"].disabled=true;
		QZJD_TR.style.display = '';
		BLTJ_TR.style.display = 'none';
	}else if(document.forms[0]['PAY_TYPE_FLAG'].value=="4")//定比例
	{
		//定比例
		
		document.forms[0]["TRRIGER_BALANCE"].value="";//置触发金额为空
		document.forms[0]["TRIAMOUNT"].value="";		
		document.forms[0]["AM"].value="0";
		document.forms[0]["AMOUNT"].value="0";
		document.forms[0]["AM"].disabled=true;
		QZJD_TR.style.display = 'none';
		BLTJ_TR.style.display = '';
	}else
	{		
		document.forms[0]["TRRIGER_BALANCE"].value="";//置触发金额为空
		document.forms[0]["TRIAMOUNT"].value="";		
		document.forms[0]["AM"].value="";
		document.forms[0]["AMOUNT"].value="";
		document.forms[0]["AM"].disabled=false;
		QZJD_TR.style.display = 'none';
		BLTJ_TR.style.display = 'none';
		document.getElementById("showAmount").innerText = "余额：";
	}
		
	if(document.forms[0]['PAY_TYPE_FLAG'].value=="3")//取整
	{
		cfje.style.display="";
		QZJD_TR.style.display = '';
		BLTJ_TR.style.display = 'none';
		amount_tr.style.display = 'none';
		bigAmount_tr.style.display = 'none';
		document.getElementById("bigChineseShow").innerText = '';
	}else if(document.forms[0]['PAY_TYPE_FLAG'].value=="4")//定比例
	{
		cfje.style.display="";
		QZJD_TR.style.display = 'none';
		BLTJ_TR.style.display = '';
		amount_tr.style.display = 'none';
		bigAmount_tr.style.display = 'none';
		document.getElementById("bigChineseShow").innerText = '';
	}else if(document.forms[0]['PAY_TYPE_FLAG'].value=="0"){
		cfje.style.display="none";
		amount_tr.style.display = '';
		bigAmount_tr.style.display = 'none';
	}else if(document.forms[0]['PAY_TYPE_FLAG'].value=="1"){//零余额
		cfje.style.display="";
		amount_tr.style.display = '';
		bigAmount_tr.style.display = 'none';
		document.getElementById("bigChineseShow").innerText = '';
	}else
	{
		cfje.style.display="";
		amount_tr.style.display = '';
		bigAmount_tr.style.display = 'none';
	}
}

//判断比例系数是否为0-100之间的整数
function isInteger1(str)
{
	var newpar=/^\d+$/;
	if((str != "")&&(!newpar.test(str)))
	{
		return false;
	}
	if(parseInt(str,10)<1)return false;
	if(parseInt(str,10)>100)return false;
	return true;
}

//账号特殊处理 即每4个数字后添加一个空格
function formatAcc(obj){
	var temp = "";
	var str=obj.value.replace(/\s*/g, "");
	for(var i=0;i<str.length;i++){		
		temp=temp+str.substring(i,i+1);
		if(i!=0&&(i+1)%4==0&&i!=(str.length-1)){	
			temp=temp+" ";
			}
	}	
	obj.value=temp;
}

//账号特殊处理 即每4个数字后添加一个空格
function formatAcc2(strAccNo){
	var temp = "";
	var str=strAccNo.replace(/\s*/g, "");
	for(var i=0;i<str.length;i++){		
		temp=temp+str.substring(i,i+1);
		if(i!=0&&(i+1)%4==0&&i!=(str.length-1)){	
			temp=temp+" ";
		}
	}	
	return temp;
}

//ajax获取付款账户属性
//创建xmlhttp对象
var objHTTP = null;
var ajax = {};
//Msxml2.XMLHttp.6.0 是一个目前最好的版本，其次是 Msxml2.XMLHttp.3.0。
//其他版本的 XMLHttp 都带有部分安全、稳定、有效等方面的问题，所以不建议使用。
//特别注意IE7已支持原生XMLHttpRequest对象。
ajax._factories = [
                   function(){return new ActiveXObject('Microsoft.XMLHTTP');},
                   function(){return new ActiveXObject('Msxml2.XMLHTTP');},
                   //function(){return new ActiveXObject('Msxml2.XMLHTTP.4.0');},
                   //function(){return new ActiveXObject('Msxml2.XMLHTTP.5.0');},
                   function(){return new ActiveXObject('Msxml2.XMLHTTP.3.0');},
                   function(){return new ActiveXObject('Msxml2.XMLHTTP.6.0');},
                   function(){return new XMLHttpRequest();}];
ajax._factory = null;
ajax.createRequest = function(){
     if(ajax._factory != null) return ajax._factory();
     for(var i=ajax._factories.length-1; i>=0 ; i--){
         try{
             var factory = ajax._factories[i];
             var request = factory();
             if(request != null){
                 ajax._factory = factory;
                 return request;
             }
         }
         catch(e){
             continue;
         }
    }
    ajax._factory = function(){
        throw new Error('XMLHttpRequest not supported');
    };
    ajax._factory();
};

//根据选中的付款账户，查询相应付款账户的个性信息
function getPayAccNoInfo(){
	var selPayAcc = document.getElementById("PAY_ACCNO_ID");
	var payAccVal = selPayAcc.options[selPayAcc.selectedIndex].value; //获得用户选择的付款账户

	if (objHTTP==null){
		objHTTP = ajax.createRequest();
		if (objHTTP==null){
			return false;
		}
	}
	var customerid=document.jhform.CUSTOMERID.value; 
	var SKEY = document.jhform.SKEY.value; 
	var USERID = document.jhform.USERID.value;
	var str='/NCCB/NECV6B2BMainPlat?TXCODE=NN1103&SKEY='+SKEY+'&CUSTOMERID='+escape(customerid)+'&USERID='+USERID+'&PAY_ACC_NO='+payAccVal;
	str = str +'&IS_CCB=0&isAjaxRequest=true';
    objHTTP.open('POST',str,false);
    //objHTTP.setRequestHeader("Contrn-type","ISO-8859-1");
	//objHTTP.open("POST", url2, false);
	objHTTP.onreadystatechange = updatePayAccInfo; //回调方法
	objHTTP.send(null);
}

//更新付款账户相关属性信息
function updatePayAccInfo(){
	if(objHTTP.readyState==4){
		if(objHTTP.status==200){
			var response = objHTTP.responseText;
			var arr;
			var res = response;
			if(trimLine(res).length > 0){ //有数据
				if(res.indexOf("#@")>-1){ //表示为一户通账户
					yht_flag = "0";      //选择的付款账户为一户通账户标志
					subAcc = new Array();   //清空一户通所有子账户
					arr = res.substring(res.indexOf("#@")+2,res.indexOf("@#")).split("$");
					for(var i=0;i<arr.length-1;i++){ //重置一户通子账户信息
						subAcc[i] = new Array();
						var subInfoArr = arr[i].split("|");
						subAcc[i][0]= subInfoArr[2];    //子账户序号
						subAcc[i][1]= subInfoArr[1];    //子账户类型
						subAcc[i][2]= subInfoArr[4];    //子账户余额
						subAcc[i][3]= subInfoArr[0];    //子账户名称
						subAcc[i][4]= subInfoArr[3];    //层次号
					}
					//重新初始化一户通子账户选项
					initSubAcc();
				}else{
					yht_flag = "1";  //选择的付款账户非一户通
					yhtPageTotal = "0";
					document.getElementById("sele1_1").style.display="none";
				}
				
				if(res.indexOf("&@")>-1){//表示为付款账户开通定向付款
					dx_acc_flag = "0";
					//首先置空原有定向收款账户信息
					ccbDxAccVals = new Array();  	//定向建行账户选项值
					ccbDxAccTexs = new Array();  	//定向建行账户选项文本
					otherDxAccVals = new Array();   //定向跨行账户选项值
					otherDxAccTexs = new Array();   //定向跨行账户选项文本
					ccbDxIndex = 0;
					otherDxIndex = 0;

					arr = res.substring(res.indexOf("&@")+2,res.indexOf("@&")).split("$");
					for(var j=0;j<arr.length-1;j++){//重置定向收款账户列表
						var dxInfoArr = arr[j].split("|");
						//定向建行
						if(dxInfoArr[6]=="01"){
							//定向账户值：账号+户名+开户机构名称+开户行号+联行号
							ccbDxAccVals[ccbDxIndex] = dxInfoArr[0] + "|" + dxInfoArr[1] + "|" + dxInfoArr[4] + "|" + dxInfoArr[3] + "|" + dxInfoArr[5];
							//定向列表展示信息：账号+户名+币种+开户机构名称
							ccbDxAccTexs[ccbDxIndex] = dxInfoArr[0] + " " + dxInfoArr[1] + " " + "人民币" + " " + dxInfoArr[4];
							ccbDxIndex++;
						}else{
							//定向账户值：账号+户名+开户机构名称+开户行号
							otherDxAccVals[otherDxIndex] = dxInfoArr[0] + "|" + dxInfoArr[1] + "|" + dxInfoArr[4] + "|" + dxInfoArr[3] + "|" + dxInfoArr[5];
							//定向列表展示信息：账号+户名+币种+开户机构名称
							otherDxAccTexs[otherDxIndex] = dxInfoArr[0] + " " + dxInfoArr[1] + " " + "人民币" + " " + dxInfoArr[4];
							otherDxIndex++;
						}
					}
					dxAccsChange();
				}else{
					dx_acc_flag = "1";
					dxMaxFlag = "0";
					if(res.indexOf("$#")>-1){
						tipError =res.substring(res.indexOf("$#")+2,res.indexOf("#$"));
					}
					if(tipError==""){
						document.jhform.RECV_ACCNO_IN.disabled = false;
					}
					document.getElementById("tipErr").innerText = tipError;
				}
				
				if(res.indexOf("(#")>-1){
					var arrTmp = res.substring(res.indexOf("(#")+2,res.indexOf("#)"));
					yhtPageTotal =arrTmp.split("|")[0]; //第一位：一户通子账户总页数
					dxMaxFlag =arrTmp.split("|")[1]; 	//第二位：定向付款绑定收款账户总数
				}
				
				if(res.indexOf("{@")>-1){
					pay_condition_flag =res.substring(res.indexOf("{@")+2,res.indexOf("@}"));
					if(pay_condition_flag=="0"){
						document.getElementById("pay_condition").style.display="";
					}else{
						document.getElementById("pay_condition").style.display="none";
					}
				}
				
				if(res.indexOf("[@")>-1){
					memoFlag = 0;
					//付款账户定制栏位信息
					payInfoName = new Array();    //栏位名称
					payInfoLength = new Array();  //栏位长度
					payInfoType = new Array();    //栏位属性
					payInfoMust = new Array();    //栏位是否必输
					arr = res.substring(res.indexOf("[@")+2,res.indexOf("@]")).split("$");
					for(var k=0;k<arr.length;k++){
						var memoInfoArr = arr[k].split("|");
						payInfoName[k] = memoInfoArr[0];    //栏位名称
						payInfoLength[k] = memoInfoArr[1];  //栏位长度
						payInfoType[k] = memoInfoArr[2];    //栏位属性
						payInfoMust[k] = memoInfoArr[3];    //栏位是否必输
					}
					if(res.indexOf("(@")>-1){
						signNum = res.substring(res.indexOf("(@")+2,res.indexOf("@)"));
					}
					document.jhform.SIGN_NUM.value = signNum;
					destineInfoDisplay(payInfoName);
				}else{
					signNum = 0;
					document.jhform.SIGN_NUM.value = signNum;
					destineInfoDisplay(payInfoName);
				}
				
				
				if(res.indexOf("{[")>-1){
					deftuse = res.substring(res.indexOf("{[")+2,res.indexOf("]}"));
				}else{
					deftuse = "";
				}
				
				
				if(res.indexOf("{(")>-1){
					defineUse = new Array();
					arr = res.substring(res.indexOf("{(")+2,res.indexOf(")}")).split("|");
					for(var m=0;m<arr.length-1;m++){
						defineUse[m] = arr[m];
					}
				}else{
					defineUse = new Array();
				}
				
				useLoads();
			}
		}else if(objHTTP.status==404){
			alert("页面不存在");
		}else{
			alert("获取数据失败:"+objHTTP.status);
		}
	}
}

//ajax返回去掉回车、换行函数
function trimLine(str){   
	return str.replace(/[\n|\r]/g, "");
}

function selTranWay(){
	
	if(document.jhform.TRAN_WAY[1].checked){//内转
		//sele3_1.style.display ='none';
		sele4.style.display='none';
		recv_type.style.display="none";
		sele1_3.style.display ='block';
		other_recvnm.style.display = "none";
		document.getElementById("sel_opendept").style.display="none";
		document.getElementById("inputCounterTr").style.display="none";
		document.getElementById("bank_tr").style.display="none";
		document.getElementById("province_city").style.display="none";
		document.getElementById("sel_counter").style.display="none";
		document.getElementById("dingxiang_recv").style.display="none";
	}
	if(document.jhform.TRAN_WAY[0].checked){//外转
		//sele7.style.display ='block';
		sele1_3.style.display ='none';
		recv_type.style.display="";
		//var bankType = document.getElementById("recv_acc_type");//行别
		if(dx_acc_flag!="0"){ //非定向外转
			sele4.style.display = "";
		}else{
			document.getElementById("dingxiang_recv").style.display="";
		}
		dxAccsChange();  //模拟选择行别触发事件
	}
}

function searchAcc(){
	var oldPayAccVal = document.getElementById("PAY_ACCNO_ID").value;
	var str = document.getElementById("ser").value
	if(str=="请输入模糊账号或模糊账户名称"){
		str = "";
	}
	var i
	var m= document.jhform.elements[0].selectedIndex-1;
	var j=0;
	var sea = new Array();
	sea[m] = new Array();
	var seaN= new Array();
	seaN[m] = new Array();
	for(i=0;i<acc_show[m].length;i++){
	    if(acc_show[m][i].indexOf(str) != -1)
	    {
	      sea[m][j] = acc_value[m][i];
	      seaN[m][j]=acc_show[m][i];
	      j++;
	    }
	}
	Menu_Change2('sleteone','PAY_ACCNO_ID',sea,seaN);
	var newPayAccVal = document.getElementById("PAY_ACCNO_ID").value;
	//模糊查询后，选择的付款账号跟查询前如果不一致的话，则触发相关事件 20140419
	if(oldPayAccVal!=newPayAccVal){
		getPayAccNoInfo();
		checkAcc();
	}
}

function checkAcc(){
	
	if(yht_flag=="0"){//一户通
		sele1_1.style.display ='block';
		sele1_2.style.display ='block';
		if(dx_acc_flag=="0"){  //选择的付款账户开通了定向付款
			//document.getElementById("recv_type").style.display="none";
			document.getElementById("sele4").style.display="none";
			document.getElementById("other_recvnm").style.display="none";
			document.getElementById("dingxiang_recv").style.display="";
		}else{
			//document.getElementById("recv_type").style.display="";
			document.getElementById("sele4").style.display="";
			document.getElementById("other_recvnm").style.display="none";
			document.getElementById("dingxiang_recv").style.display="none";
			//document.getElementById("RECV_ACCNO_IN").style.display="";
		}
		//document.getElementById("yusuan_tr").style.display="none";
		showDxHrefAndYhtHref();//动态展示定向收款账户分页查询链接
		selTranWay();
	}
	else{//非一户通
		sele1_1.style.display ='none';
		sele1_2.style.display ='none';
		sele1_3.style.display ='none';
		if(document.jhform.recv_acc_type[0].checked||document.jhform.recv_acc_type[1].checked){
			sele4.style.display = "";
		}
		//selTranWay();
		//签约了预算产品的账户
		if(dx_acc_flag=="0"){  //选择的付款账户开通了定向付款
			//document.getElementById("recv_type").style.display="none";
			document.getElementById("sele4").style.display="none";
			document.getElementById("other_recvnm").style.display="none";
			document.getElementById("dingxiang_recv").style.display="";
		}else{
			//document.getElementById("recv_type").style.display="";
			document.getElementById("sele4").style.display="";
			document.getElementById("other_recvnm").style.display="none";
			document.getElementById("dingxiang_recv").style.display="none";
		}
		//document.getElementById("yusuan_tr").style.display="";
		showDxHrefAndYhtHref();//动态展示定向收款账户分页查询链接
	}
	
	
	if(defPayAcc == document.getElementById("PAY_ACCNO_ID").value){
		document.jhform.DEFAUL_PAYACC.checked = true;
	}else{
		document.jhform.DEFAUL_PAYACC.checked = false;
	}
}

//获取当前时间
function getCurDate()
{
    var date = new Date();
    var year = date.getYear();
    var month = date.getMonth()+1;
    var day = date.getDate();
    var dateStr = year;
    if(month<10)
    	dateStr = dateStr + "0" + month;
	else
		dateStr = dateStr +""+ month;
	if(day<10)
		dateStr = dateStr + "0" + day;
	else
		dateStr = dateStr + day;
	return dateStr;
}

//定向账户行内、跨行转换
function dxAccsChange(){
	dxAccsOption = document.getElementById("dx_recv_acc");
	dxAccsOption.length = 0;
	recvAccType = document.getElementsByName("recv_acc_type"); //收款账户行别
	
	if(dx_acc_flag=="0"){
		if(recvAccType[0].checked){
			if(ccbDxAccVals.length>0){
				for(var index01=0;index01<ccbDxAccVals.length;index01++){
					dxAccsOption[index01]= new Option(ccbDxAccTexs[index01],ccbDxAccVals[index01]);
				}
			}
			document.getElementById("sel_opendept").style.display="none";
			document.getElementById("inputCounterTr").style.display="none";
			document.getElementById("bank_tr").style.display="none";
			document.getElementById("province_city").style.display="none";
			document.getElementById("sel_counter").style.display="none";
			document.getElementById("commRecvHref").style.display="";  	//常用收款账户链接
			document.getElementById("signAuthHref").style.display="";	//签约授权账户链接
			document.getElementById("tipShow").style.display="";		//签约授权账户说明
		}else{
			if(otherDxAccVals.length>0){
				for(var index02=0;index02<otherDxAccVals.length;index02++){
					dxAccsOption[index02]= new Option(otherDxAccTexs[index02],otherDxAccVals[index02]);
				}
			}
			document.getElementById("commRecvHref").style.display="";  	//常用收款账户链接
			document.getElementById("signAuthHref").style.display="none";	//签约授权账户链接
			document.getElementById("tipShow").style.display="none";		//签约授权账户说明
		}
		document.getElementById("sele4").style.display="none";
		document.getElementById("other_recvnm").style.display="none";
		document.getElementById("dingxiang_recv").style.display="";
		var selDxOtherAccVal = "";
		//仅对他行定向账户显示户名和开户机构名称栏
		if(recvAccType[1].checked&&dxAccsOption.options.length>0){
			selDxOtherAccVal = dxAccsOption.options[dxAccsOption.selectedIndex].value;
			var selDxOtherAccArrs = selDxOtherAccVal.split("|");
			//对于他行定向收款账户，如果他行户名、开户机构名称、联行号有一个为空，则户名、开户机构允许输入 20141105
			
			if(selDxOtherAccArrs[1]==""||selDxOtherAccArrs[2]==""){
				document.getElementById("other_recvnm").style.display="";
				document.getElementById("sel_opendept").style.display="";
				swtype1();
			}
		}
		//document.getElementById("commRecvHref").disabled=true;  	//常用收款账户链接
		//document.getElementById("signAuthHref").disabled=true;	    //签约授权账户链接
	}else{
		document.getElementById("dingxiang_recv").style.display="none";
		document.getElementById("sele4").style.display="";
		if(recvAccType[0].checked){
			document.getElementById("other_recvnm").style.display="none";
			document.getElementById("sel_opendept").style.display="none";
			document.getElementById("inputCounterTr").style.display="none";
			document.getElementById("bank_tr").style.display="none";
			document.getElementById("province_city").style.display="none";
			document.getElementById("sel_counter").style.display="none";
			document.getElementById("commRecvHref").style.display="";  	//常用收款账户链接
			document.getElementById("signAuthHref").style.display="";	//签约授权账户链接
			document.getElementById("tipShow").style.display="";		//签约授权账户说明
		}else{
			document.getElementById("other_recvnm").style.display="";
			document.getElementById("sel_opendept").style.display="";
			document.getElementById("commRecvHref").style.display="";  	//常用收款账户链接
			document.getElementById("signAuthHref").style.display="none";	//签约授权账户链接
			document.getElementById("tipShow").style.display="none";		//签约授权账户说明
			swtype1();
		}
		//document.getElementById("commRecvHref").disabled=false;  	//常用收款账户链接
		//document.getElementById("signAuthHref").disabled=false;	    //签约授权账户链接
	}
}

//对于他行定向收款，选择定向收款账户时需特殊处理
function selDxOtherAcc(){
	var dxOtherAccObj = document.getElementById("dx_recv_acc");
	var dxAccFlag = document.getElementsByName("recv_acc_type"); //收款账户行别
	if(dxAccFlag[1].checked){
		var selDxOtherAccVal = "";
		if(dxAccsOption.options.length>0){
			selDxOtherAccVal = dxOtherAccObj.options[dxOtherAccObj.selectedIndex].value;
			var selDxOtherAccArrs = selDxOtherAccVal.split("|");
			//对于他行定向收款账户，如果他行户名、开户机构名称、联行号有一个为空，则户名、开户机构允许输入 20141105
			if(selDxOtherAccArrs[1]==""||selDxOtherAccArrs[2]==""){
				document.getElementById("other_recvnm").style.display="";
				document.getElementById("sel_opendept").style.display="";
				swtype1();
			}else{
				document.getElementById("other_recvnm").style.display="none";
				document.getElementById("sel_opendept").style.display="none";
				document.getElementById("inputCounterTr").style.display="none";
				document.getElementById("bank_tr").style.display="none";
				document.getElementById("province_city").style.display="none";
				document.getElementById("sel_counter").style.display="none";
			}
		}
	}
}

//获得地区信息
function getCityInfo(){
	var oProv = document.getElementById("hidden_province");
	var prov = oProv.value; //获得用户选择的省份

	if(prov==""){ //用户没有选择省份
		clearCity(); //清空城市信息
		alert("请选择省份!")  
		return;
	}
	
	if (objHTTP==null){
		objHTTP = ajax.createRequest();
		if (objHTTP==null){
			return false;
		}
	}
	var customerid=document.jhform.CUSTOMERID.value; 
	var str='/NCCB/NECV6B2BMainPlat?TXCODE=NN1106&SKEY=gNLe16&CUSTOMERID='+escape(customerid)+'&USERID=111111&AREA_PROV='+prov+'&isAjaxRequest=true';
	
	//alert(str);
    objHTTP.open('POST',str,false);
    //objHTTP.setRequestHeader("Contrn-type","ISO-8859-1");
	//objHTTP.open("POST", url2, false);
	objHTTP.onreadystatechange = updateCityInfo; //回调方法
	objHTTP.send(null);
    if(BROWSER.Name.indexOf("Firefox") > -1){
       updateCityInfo();
     }
}
//更新城市列表
function updateCityInfo(){
	if(objHTTP.readyState==4){
		if(objHTTP.status==200){
			var response = objHTTP.responseText;
			var arr;
			var res = response;
			clearCity(); //清空城市信息
			//
			//alert(res);
			//if(res.length > 13){ //有数据

			if(trimLine(res).length > 0 && res.indexOf('{"data":[')>-1){ //存在有效数据
				cityData = eval("("+trimLine(res)+")");
				//alert(oCity.options.length);
			}
			
		}else if(objHTTP.status==404){
			alert("页面不存在");
		}else{
			//alert("获取数据失败:"+objHTTP.status);
		}
	}
}
//清空城市信息
function clearCity(){
	cityData={"data":[]};
}

//更新网点信息
function getCounterInfo(){
	var bankno=document.getElementById("hidden_outbank").value;
	if(bankno==""){
		alert("请选择其他银行");
		return;
	}
	var scity = document.getElementById("hidden_city").value;
	if(scity==""){
		alert("请选择城市");
		return;
	}
	if (objHTTP==null){
		objHTTP = ajax.createRequest();
		if (objHTTP==null){
			return false;
		}
	}
	var customerid=document.jhform.CUSTOMERID.value; 
	var str='/NCCB/NECV6B2BMainPlat?TXCODE=NN1106&SKEY=gNLe16&CUSTOMERID='+escape(customerid)+'&USERID=111111&AREA_PROV=&BANKNO=' + bankno + '&AREA_CODE='+scity+'&isAjaxRequest=true';	

    //alert(str);
    objHTTP.open('POST',str,false);
    //objHTTP.setRequestHeader("Contrn-type","ISO-8859-1");
	//objHTTP.open("POST", url2, false);
	objHTTP.onreadystatechange = updateCounterInfo; //回调方法
	objHTTP.send(null);
    if(BROWSER.Name.indexOf("Firefox") > -1){
    	updateCounterInfo();
    }

}
//更新网点列表信息
function updateCounterInfo(){
	if(objHTTP.readyState==4){
		if(objHTTP.status==200){
			var response = objHTTP.responseText;
			var arr;
			var res = response;
			counterData = {"data":[]}; //清空网点信息
			//if(res.length > 13){ //有数据
			if(trimLine(res).length > 0&&res.indexOf('{"data":[')>-1){ //存在有效数据
				counterData = eval("("+trimLine(res)+")");
			}
		}else if(objHTTP.status==404){
			alert("页面不存在");
		}else{
			alert("获取数据失败:"+objHTTP.status);
		}
	}
}

//按关键字模糊查询开户网点
function serOpenDept()
{
	var keyWord = document.jhform.OPENDEPTKW.value;
	if (keyWord == null || keyWord.length == 0) {
		alert("请输入查找条件");
		return;
	}
	if(isInteger(keyWord)){//按联行号关键字ajax查询开户网点信息
		if(keyWord.length == 12){
			if (objHTTP==null){
				objHTTP = ajax.createRequest();
				if (objHTTP==null){
					return false;
				}
			}
			var customerid=document.jhform.CUSTOMERID.value; 
			var SKEY = document.jhform.SKEY.value; 
			var USERID = document.jhform.USERID.value;
			var str='/NCCB/NECV6B2BMainPlat?TXCODE=NN1107&SKEY='+SKEY+'&CUSTOMERID='+escape(customerid)+'&USERID='+USERID+'&QUERY_BANK_TYPE=1&OPENDEPTKW='+keyWord+'&isAjaxRequest=true';
			objHTTP.open('POST',str,false);
			objHTTP.onreadystatechange = updateCounterAjax; //回调方法
			objHTTP.send(null);
			if(BROWSER.Name.indexOf("Firefox") > -1){
				updateCounterAjax();
			}
		}else{
			alert("标准联行号为12位数字，请重新输入");
			return ;
		}
	}else{//按关键字弹出窗口模糊查找
		var selOutBank = document.jhform.outbank;
		if(selOutBank.value==""||selOutBank.value=="请选择或输入开户行关键字匹配"){
			alert("请选择或输入开户行");
			document.jhform.OTHERBANKTYPE[0].checked = true;
			swtype1();
			selOutBank.focus();
			return ;
		}
		
		openWin('TXCODE|','NN1107|',AA); 
	}
	
}

function updateCounterAjax(){
	if(objHTTP.readyState==4){
		if(objHTTP.status==200){
			var response = objHTTP.responseText;
			var arr;
			var res = response;

			if(trimLine(res).length > 0){ //有数据
				arr = res.substring(res.indexOf("[")+1,res.length-1).split("|");
				if(arr[4] && arr[4].length == 12){
					window.setTimeout(function(){
						setChooseCounter(arr[0],arr[1],arr[2],arr[3],arr[4])
					},0);
				}else{
					alert("联行号输入有误,请重新输入");
				}
				
			}
			
		}else if(objHTTP.status==404){
			alert("页面不存在");
		}else{
			alert("获取数据失败:"+objHTTP.status);
		}
	}
}

//模糊查询结果页面选择网点后自动匹配下拉选项
function setChooseCounter(area_prov,area_name,ubank_name,area_code,ubank_code){
		document.jhform.OTHERBANKTYPE[0].checked = true;
		swtype1();
		
		for(var j=0;j<bankData.data.length;j++) {
			if (bankData.data[j].id == ubank_code.substr(0,3)) {
				document.getElementById("outbank").value=bankData.data[j].value;
				document.getElementById("hidden_outbank").value=bankData.data[j].id;
				selectBoxTool.defaultLight(document.getElementById("outbank"));
				break;
			}
		}
		
		for(var k=0;k<provData.data.length;k++) {
			if (provData.data[k].value == area_prov) {
				document.getElementById("province").value=provData.data[k].value;
				document.getElementById("hidden_province").value=provData.data[k].id;
				selectBoxTool.defaultLight(document.getElementById("province"));
				getCityInfo();
				break;
			}
		}

		for(var m=0;m<cityData.data.length;m++) {
			if (cityData.data[m].id == area_code) {
				document.getElementById("city").value=cityData.data[m].value;
				document.getElementById("hidden_city").value=cityData.data[m].id;
				selectBoxTool.defaultLight(document.getElementById("city"));
				getCounterInfo();
				break;
			}
		}
		
		for(var n=0;n<counterData.data.length;n++) {
			if (counterData.data[n].id == ubank_code) {
				document.getElementById("netcounter1").value = counterData.data[n].value;
				document.getElementById("hidden_netcounter1").value = counterData.data[n].id;
				selectBoxTool.defaultLight(document.getElementById("netcounter1"));
				break;
			}
		}
}

//定义方法代替下拉选项的change事件，该事件绑定在指定sid下拉框对象上，sid参数为了判断事件绑定在指定的下拉框对象上
function dataHandler(id,txt,sid){
	if(sid!="province"&&sid!="city"&&sid!="use1"){
		return;
	}
	if(sid=="province"){
		getCityInfo();
		selectBoxTool.renderOption(cityData,"city");
		selectBoxTool.defaultLight(document.getElementById("city"),true);
	}else if(sid=="city"){
		getCounterInfo();
		selectBoxTool.renderOption(counterData,"netcounter1");
		selectBoxTool.defaultLight(document.getElementById("netcounter1"),true);
	}else if(sid=="use1"){
		changeSelUse();
	}
}

//查询类型accFlag：1-查询常用收款账户 2-查询签约授权账户
function queryComnRecvAcc(accFlag){
   var isAccCcb = '0';
   if(document.getElementsByName("recv_acc_type")[0].checked){
      isAccCcb = '0';           		//查询行内常用收款账户
   }else{
   	 isAccCcb = '1';           			//查询跨行常用收款账户
   }
   if(accFlag=="1"){
       openWin('TXCODE|IS_ACC_CCB|','NN1104|'+isAccCcb+'|',AA);
   }else if(accFlag=="2"){
   		openWin('TXCODE|','NN1105|',AA);
   }
  
}

//查询交易限额
function queryTranLimit(){
	var selAccNo = document.getElementById("PAY_ACCNO_ID").value;
	openWin('TXCODE|ACC_NO|','NN110D|'+selAccNo+'|',AA);
}

//操作员限额查询
function queryOperLimit(){
	openWin('TXCODE|TRD_TYP|','NN110E|0|',AA);
}



//查询付款账户余额
function queryBalance(){
	var selPayAcc = document.getElementById("PAY_ACCNO_ID").value;
	var customerid=document.jhform.CUSTOMERID.value; 
	var SKEY = document.jhform.SKEY.value; 
	var USERID = document.jhform.USERID.value;
	var queryURL='/NCCB/NECV6B2BMainPlat?TXCODE=N09013&SKEY='+SKEY+'&CUSTOMERID='+escape(customerid)+'&USERID='+USERID+'&ACCT_NO='+selPayAcc;
	
	//ccbAlert(queryURL);
	openTxWindow(queryURL,'_blank', 1, 400, 750);
}

//账户自定义定制备注信息
//付款账户定制栏位信息
var payInfoName = new Array();    //栏位名称
var payInfoLength = new Array();  //栏位长度
var payInfoType = new Array();    //栏位属性
var payInfoMust = new Array();    //栏位是否必输


//根据返回栏位名称个数，动态展示账户定制信息
function destineInfoDisplay(infoName){
	var showTrInfo = "";
	var total = 0;
	try{
		total = parseInt(signNum,10);
	}catch(e){
		total = 0;
	}
	if(total>10){
		total = 10;  //账户定制备注信息最多10个
	}
	var infoRow;
	for(var i=0;i<total;i++){
		document.getElementById("defy_info"+(i+1)).style.display = "";
		infoRow = document.getElementById("defy_info"+(i+1));
		infoRow.getElementsByTagName("td")[0].innerHTML = ''+infoName[i] + '：';
		infoRow.getElementsByTagName("td")[1].innerHTML = '<input type="text" class="inTxt" size="32" name="Prsz_Inf_1" id="Prsz_Inf_'+(i+1)+'">';
		showTrInfo = showTrInfo + '<input type="hidden" name="Prsz_Inf_Nm_1" value = "' + infoName[i] + '"><br>';
		document.getElementById("BB").innerHTML = showTrInfo;
	}
	//对于未开通的定制信息栏位，则隐藏
	if(total<10){
		for(var m=total;m<10;m++){
			document.getElementById("defy_info"+(m+1)).style.display = "none";
		}
	}
	if(total==0){
		document.getElementById("BB").innerHTML = "";
	}
}

//获取输入信息长度
function getInputLength(strInputVal)
{
   var count = 0; //连续的全角字符串个数
   var indexTmp = 0;
   var inputValLen = 0;
   var flag = 1;  //第一次碰到全角字符标志
   for(m=0;m<strInputVal.length;m++)
   {
      var c = strInputVal.substr(m,1);
      var ts = escape(c);
      if(ts.substring(0,2) == "%u") 
	  {
      	inputValLen+=2;
      	if(indexTmp==0&&flag==1||m-indexTmp>1){
      		count++;
      		flag = 0;
      	}
      	indexTmp = m;
      }else{
      	inputValLen+=1;
      }
	}
	
	if(count>0){
		inputValLen = inputValLen + 2*count; //按照上开处理规则，每个连续的全角字符串需要占额外的两位长度
	}
	
	return inputValLen;
}

//简单判断输入金额格式
function isAmount(inputStr){
	if(!isDouble(inputStr)){
		//alert(name+"输入必须是标准金额！");
		return "1";
	}
	
	var i = inputStr.indexOf(".");
	if ( i != -1 && (inputStr.length - i - 1) > 2 )
	{
		//alert(name + "小数部分不能多于2位！");
		return "2";
	}
	
	return "0";
}

//模糊查询获得焦点
function getFocus(selId){
	selObj = document.getElementById(selId);
	if(selObj.value=="请输入模糊账号或模糊账户名称"){
		selObj.value='';
		selObj.style.color='#000000';
	}
}

//模糊查询失去焦点
function lostFocus(selId){
	selObj = document.getElementById(selId);
	if(selObj.value==""){
		selObj.value='请输入模糊账号或模糊账户名称';
		selObj.style.color='#A9A9A9';
	}
}

//手工输入开户机构信息
function getFocus2(inpuntObjId){
	var inpuntObj = document.getElementById(inpuntObjId);
	
	if(inpuntObjId=="input_counter"&&inpuntObj.value=="请输入XXX银行XXX省XXX市XXX网点"){
		inpuntObj.value = "";
		inpuntObj.style.color='#000000';
	}
}

//手工输入开户机构信息
function lostFocus2(inpuntObjId){
	var inpuntObj = document.getElementById(inpuntObjId);
	
	if(inpuntObjId=="input_counter"&&inpuntObj.value==""){
		inpuntObj.value = "请输入XXX银行XXX省XXX市XXX网点";
		inpuntObj.style.color='#ccc';
	}
}
/**
//不定向付款时，收款账户户名只允许输入汉字、字母和数字(包括全角) 20140303
function checkAccountName(accName) {
	var regex = /^[a-zA-Z0-9\uff10-\uff19\uff41-\uff5a\uff21-\uff3a\u4e00-\u9fa5.．·]+$/;
	return regex.test(accName);
}
**/



//常用收款账户模糊查询
function showAccSelection(obj){
	
	var div = document.getElementById("ccbRevAcc");

	if (obj.value.trim()=='') {
		div.style.display = "none";
		return false;
	}

	var top=0,left=0;
	var op=obj;
	while(op!=null){
		top += op.offsetTop;
		left += op.offsetLeft;
		op = op.offsetParent;
	}

	div.style.left = left + 1 + 'px';
	div.style.top = top + 29 - 1 + 'px';
	div.style.display = "";

	addRevAcc(div,obj.value.replace(/\s*/g, ""));
}

function hiddenAccSelection(obj) {
	var e = event || window.event;
	var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
	var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
	var x = e.pageX || e.clientX + scrollX;
	var y = e.pageY || e.clientY + scrollY;

	var div = document.getElementById("ccbRevAcc");

	
	var divx1 = div.offsetLeft;
	var divy1 = div.offsetTop;
	var divx2 = divx1 + div.offsetWidth;
	var divy2 = divy1 + div.offsetHeight;
	
	if (x < divx1 ||x > divx2 || y < divy1 | y > divy2 ) {
		div.style.display = "none";
	}
}

function addRevAcc(obj,value) {
	var index = 0;
	
	var revAccNo;
	var revType = 'ccb';

	if (document.getElementsByName('recv_acc_type')[0].checked) {
		revAccNo = comRevAccNo;
	} else {
		revAccNo = priRevAccNo;
	}

	obj.innerHTML = '';

	if(revCount > maxRevCount) {
		var div = document.createElement("div");
		div.className = 'revAccItem';
		div.innerHTML = "精确检索请在右侧常用收款账户操作";
		obj.appendChild(div);
	}

	
	for (var i=0, j=revAccNo.length; i<j; i++) {
		if(revAccNo[i].indexOf(value) !=-1) {
			var div = document.createElement("div");
			div.id = revType + '_' + i;
			div.accNo = revAccNo[i];
			div.className = 'revAccItem';
			addEvent(div,'click',setRevAcc,false);
			div.innerHTML = revAccNo[i];
			obj.appendChild(div);
			index++;
			
			/*if(index>=10) {
				break;
			}*/
		}
	}

	if (index == 0) {
		obj.style.display = 'none';
	}
}

function addEvent(obj, evType, fn, useCapture) {
	if (obj.addEventListener) {
		obj.addEventListener(evType, fn, useCapture);
	} else if (obj.attachEvent) {
		obj.attachEvent('on'+evType, fn);
	} else {
		obj['on'+evType] = fn;
	}
}

function setRevAcc() {
	var obj;
	var inputBank = document.getElementById("RECV_ACCNO_IN");
	var revAcc = document.getElementById('ccbRevAcc');
	
	if(window.event.srcElement) {
		obj = window.event.srcElement;
	} else if(event.target) {
		obj = event.target;
	}

	var accNo = obj.accNo;

	if (document.getElementsByName('recv_acc_type')[0].checked) {
		
	} else {
		getPriAccInfo(accNo);
	}

	inputBank.value = accNo;
	formatAcc(inputBank);
	revAcc.innerHTML = '';
	revAcc.style.display = 'none';
}

function getPriAccInfo(accNo) {
	if (objHTTP==null){
		objHTTP = ajax.createRequest();
		if (objHTTP==null){
			return false;
		}
	}
	var isCcb = "0";
	if(document.jhform.recv_acc_type[1].checked){
		isCcb = "2";
	}
	var customerid=document.jhform.CUSTOMERID.value; 
	var SKEY = document.jhform.SKEY.value; 
	var USERID = document.jhform.USERID.value;
	var str='/NCCB/NECV6B2BMainPlat?TXCODE=NN110C&SKEY='+SKEY+'&CUSTOMERID='+escape(customerid)+'&USERID='+USERID+'&ACC_NO='+accNo+'&USE_TYP=2&IS_ACC_CCB='+isCcb+'&isAjaxRequest=true';
	objHTTP.open('POST',str,false);
	objHTTP.onreadystatechange = setPriAccInfo; //回调方法
	objHTTP.send(null);
	if(BROWSER.Name.indexOf("Firefox") > -1){
		setPriAccInfo();
	}
}

function setPriAccInfo() {
	if(objHTTP.readyState==4){
		if(objHTTP.status==200){
			var response = objHTTP.responseText;
			var arr;
			var res = response;
			
			if(trimLine(res).length > 0){ //有数据
				arr = res.substring(res.indexOf("#@")+2,res.indexOf("@#")).split("|@|");

				document.getElementById('RECV_ACC_NAME').value = arr[1];
				window.setTimeout(function(){
					setChooseCounter(arr[2],arr[3],arr[4],arr[5],arr[6])
					},0);
				//setChooseCounter(arr[2],arr[3],arr[4],arr[5],arr[6]);
			}
			
		}else if(objHTTP.status==404){
			//alert("页面不存在");
		}else{
			//alert("获取数据失败:"+objHTTP.status);
		}
	}
}

//放大
function showAmplifier(obj){
	var div = document.getElementById("amplifier");
	if(obj.value.trim()!='') {
	
		var top=0,left=0;
		var op=obj;
		while(op!=null){
			top += op.offsetTop;
			left += op.offsetLeft;
			op = op.offsetParent;
		}
	
		div.style.left = left + 1 + 'px';
		div.style.top = top - 30 - 1 + 'px';
		div.style.display = "";
	
		div.innerHTML=obj.value;
	} else {
		div.style.display = "none";
	}
}

function hiddenAmplifier() {
	document.getElementById("amplifier").style.display = "none";
}

function swtype1(){
	document.getElementById("BANK_TD").rowSpan="4";
	document.getElementById("bank_tr").style.display="";
	document.getElementById("province_city").style.display="";
	document.getElementById("sel_counter").style.display="";
	document.getElementById("inputCounterTr").style.display="none";	
	document.getElementById("bank_tip").innerText = "如未找到开户机构，请在【手工录入】中填写";
}

function swtype2(){
	document.getElementById("BANK_TD").rowSpan="5";
	document.getElementById("bank_tr").style.display="none";
	document.getElementById("province_city").style.display="none";
	document.getElementById("sel_counter").style.display="none";
	document.getElementById("inputCounterTr").style.display="";	
	
	var quickOutBank = document.getElementById("outbank").value;
	var quickProvince = document.getElementById("province").value;
	var quickCity = document.getElementById("city").value;
	var quickCounter = "";
	if(quickOutBank!=""&&quickOutBank!="请选择或输入开户行关键字匹配"){
		quickCounter = quickOutBank;
	}
	
	if(quickProvince!=""&&quickProvince!="请选择或输入省份关键字匹配"){
		quickCounter = quickCounter + quickProvince;
	}
	
	if(quickCity!=""&&quickCity!="请选择或输入城市关键字匹配"){
		
		if(quickProvince!=quickCity){
			quickCounter = quickCounter + quickCity;
		}
	}
	
	if(quickCounter!=""){
		document.getElementById("input_counter").value = quickCounter;
		document.getElementById("input_counter").style.color='#000000';
	}
	document.getElementById("bank_tip").innerText = "手工录入开户机构信息，交易将转人工处理，建议通过【快速选择】选择开户机构信息";
}

var useDataTmp = {'data':[
	
	
	{'id':'货款',
	'value':'货款'},
	
	
	
	{'id':'往来款',
	'value':'往来款'},
	
	
	
	{'id':'备用金',
	'value':'备用金'},
	
	
	
	{'id':'劳务费',
	'value':'劳务费'},
	
	
	
	{'id':'工资',
	'value':'工资'},
	
	
	
	{'id':'材料款',
	'value':'材料款'},
	
	
	
	{'id':'差旅费',
	'value':'差旅费'},
	
	
	
	{'id':'工程款',
	'value':'工程款'},
	
	
	
	{'id':'手续费',
	'value':'手续费'},
	
	
	
	{'id':'电费',
	'value':'电费'},
	
	
	
	{'id':'还款',
	'value':'还款'},
	
	
	
	{'id':'报销',
	'value':'报销'},
	
	
	
	{'id':'营业款',
	'value':'营业款'},
	
	
	
	{'id':'税款',
	'value':'税款'},
	
	
	
	{'id':'运输费',
	'value':'运输费'},
	
	
	
	{'id':'奖金',
	'value':'奖金'},
	
	
	
	{'id':'住房公积金',
	'value':'住房公积金'},
	
	
	
	{'id':'保险费',
	'value':'保险费'},
	
	
	
	{'id':'保证金',
	'value':'保证金'},
	
	
	
	{'id':'水费',
	'value':'水费'},
	
	
	
	{'id':'设备款',
	'value':'设备款'},
	
	
	
	{'id':'电话费',
	'value':'电话费'},
	
	
	
	{'id':'医药费',
	'value':'医药费'},
	
	
	
	{'id':'赔款',
	'value':'赔款'},
	
	
	
	{'id':'短信服务费',
	'value':'短信服务费'},
	
	
	
	{'id':'房款',
	'value':'房款'},
	
	
	
	{'id':'服务费',
	'value':'服务费'},
	
	
	
	{'id':'会议费',
	'value':'会议费'},
	
	
	
	{'id':'培训费',
	'value':'培训费'},
	
	
	
	{'id':'招待费',
	'value':'招待费'},
	
	
	
	{'id':'保费',
	'value':'保费'},
	
	
	
	{'id':'广告费',
	'value':'广告费'},
	
	
	
	{'id':'修理费',
	'value':'修理费'},
	
	
	
	{'id':'加工费',
	'value':'加工费'},
	
	
	
	{'id':'餐费',
	'value':'餐费'},
	
	
	
	{'id':'配件款',
	'value':'配件款'},
	
	
	
	{'id':'药费',
	'value':'药费'},
	
	
	
	{'id':'退款',
	'value':'退款'},
	
	
	
	{'id':'检测费',
	'value':'检测费'},
	
	
	
	{'id':'水电费',
	'value':'水电费'},
	
	
	
	{'id':'通行费',
	'value':'通行费'},
	
	
	
	{'id':'房租',
	'value':'房租'},
	
	
	
	{'id':'油费',
	'value':'油费'},
	
	
	
	{'id':'办公用品',
	'value':'办公用品'},
	
	
	
	{'id':'质保金',
	'value':'质保金'},
	
	
	
	{'id':'拨款',
	'value':'拨款'},
	
	
	
	{'id':'设计费',
	'value':'设计费'},
	
	
	
	{'id':'销售款',
	'value':'销售款'},
	
	
	
	{'id':'采购款',
	'value':'采购款'},
	
	
	
	{'id':'人工费',
	'value':'人工费'},
	
	
	
	{'id':'水泥款',
	'value':'水泥款'},
	
	
	
	{'id':'客运费',
	'value':'客运费'},
	
	
	
	{'id':'快递费',
	'value':'快递费'},
	
	
	
	{'id':'住宿费',
	'value':'住宿费'},
	
	
	
	{'id':'备件款',
	'value':'备件款'},
	
	
	
	{'id':'印刷费',
	'value':'印刷费'},
	
	
	
	{'id':'利息',
	'value':'利息'},
	
	
	
	{'id':'押金',
	'value':'押金'},
	
	
	
	{'id':'管理费',
	'value':'管理费'},
	
	
	
	{'id':'耗材',
	'value':'耗材'},
	
	
	
	{'id':'会务费',
	'value':'会务费'},
	
	
	
	{'id':'机票款',
	'value':'机票款'},
	
	
	
	{'id':'咨询费',
	'value':'咨询费'},
	
	
	
	{'id':'宣传费',
	'value':'宣传费'},
	
	
	
	{'id':'学费',
	'value':'学费'},
	
	
	
	{'id':'伙食费',
	'value':'伙食费'},
	
	
	
	{'id':'柴油款',
	'value':'柴油款'},
	
	
	
	{'id':'工会经费',
	'value':'工会经费'},
	
	
	
	{'id':'维护费',
	'value':'维护费'},
	
	
	
	{'id':'安装费',
	'value':'安装费'},
	
	
	
	{'id':'购车款',
	'value':'购车款'},
	
	
	
	{'id':'评估费',
	'value':'评估费'},
	
	
	
	{'id':'机械费',
	'value':'机械费'},
	
	
	
	{'id':'装卸费',
	'value':'装卸费'},
	
	
	
	{'id':'汽油款',
	'value':'汽油款'},
	
	
	
	{'id':'保洁费',
	'value':'保洁费'},
	
	
	
	{'id':'划款',
	'value':'划款'},
	
	
	
	{'id':'材料费',
	'value':'材料费'},
	
	
	
	{'id':'酬劳款',
	'value':'酬劳款'},
	
	
	
	{'id':'代收行政罚款',
	'value':'代收行政罚款'},
	
	
	
	{'id':'代收费',
	'value':'代收费'},
	
	
	
	{'id':'贷款',
	'value':'贷款'},
	
	
	{}   
	]};

var useData={"data":[
]};

var defineUse = new Array();
var defUseIndex = 0;
	

function useLoads() {
	var useIndex = 0;
	var selPayAccNo = document.getElementById("PAY_ACCNO_ID").value;
	
	for(var useIndex1=0;useIndex1<defineUse.length;useIndex1++){
		if("1100"!=payCny_Acchar_Cd[selPayAccNo]&&(defineUse[useIndex1]=="工资"||defineUse[useIndex1]=="奖金"||defineUse[useIndex1]=="绩效")){
			continue;
		}
		useData.data[useIndex++] = {'id':defineUse[useIndex1],'value':defineUse[useIndex1]};
	}
	
	
	for(var useIndex2=0;useIndex2<useDataTmp.data.length;useIndex2++){
		if("1100"!=payCny_Acchar_Cd[selPayAccNo]&&(useDataTmp.data[useIndex2].value=="工资"||useDataTmp.data[useIndex2].value=="奖金"||useDataTmp.data[useIndex2].value=="绩效")){
			continue;
		}
		useData.data[useIndex++] = {'id':useDataTmp.data[useIndex2].id,'value':useDataTmp.data[useIndex2].value};
	}
	
	var selUse = document.getElementById("use1");
	var defaultFlag = "0";
	for(var i=0; i<useData.data.length-1; i++){
		if(deftuse!=""&&deftuse==useData.data[i].id) {
			selUse.value = deftuse;
			selectBoxTool.defaultLight(document.getElementById("use1"));
			document.getElementById("useComm").checked = true;
			deftuseSel = "1";
			defaultFlag = "1";
			break;
		}
	}
	
	if(defaultFlag=="0"){
		selUse.value = "请选择或输入用途";
		selectBoxTool.defaultLight(document.getElementById("use1"),true);
		document.getElementById("useComm").checked = false;
		deftuseSel = "0";
	}
	
	var trdTyp = '';
	if(trdTyp=='0'||trdTyp=='1'||trdTyp=='2'){
		var useOf = '';
		document.getElementById("use1").value = useOf;
		selectBoxTool.defaultLight(document.getElementById("use1"));
	}
	
	selectBoxTool.initDOMLength(selUse,"220");
}


function changeSelUse(){
	var selUse = document.jhform.use1.value;
	if(deftuse == selUse){
		document.getElementById("useComm").checked = true;
	}else{
		document.getElementById("useComm").checked = false;
	}
}

function queryPageSubAcc(){
	var selAccNo = document.getElementById("PAY_ACCNO_ID").value;
	openWin('TXCODE|ACC_NO|','NN1108|'+selAccNo+'|',AA);
}

function queryPageDxAcc(){
   var isCcbFlag = "0";
   if(document.getElementsByName("recv_acc_type")[0].checked){
      isCcbFlag = "0";           //查询建行定向收款账户
   }else{
   	  isCcbFlag = "1";           //查询他行定向收款账户
   }
   openWin('TXCODE|IS_ACC_CCB|','NN1109|'+isCcbFlag+'|',AA);
}

function checkSpecialChar(chkstr){
	var chk_result="";
	if(chkstr.indexOf("{")>0&&chkstr.indexOf("{")<(chkstr.length-1)){
		chk_result= "中间不允许输入{字符";
	}
	else if(chkstr.indexOf("}")>0&&chkstr.indexOf("}")<(chkstr.length-1)){
		chk_result =  "中间不允许输入}字符";
	}
	else if(chkstr.indexOf("\\n")!=-1||chkstr.indexOf("\\r")!=-1){
		chk_result =  "回车";
	}
	else if(chkstr.indexOf("，")==0){
		chk_result =  "首字符不允许输入，";
	}
	else if(chkstr.indexOf(".")==0){
		chk_result = "首字符不允许输入.";
	}
	else if(chkstr.indexOf("－")==0){
		chk_result = "首字符不允许输入－";
	}
	else if(chkstr.indexOf("/")==0){
		chk_result = "首字符不允许输入/";
	}else if(chkstr.indexOf(",")!=-1){
		chk_result = "不允许输入,";
	}else if(chkstr.indexOf("'")!=-1){
		chk_result = "不允许输入'";
	}
	return chk_result;
}
</script>


<style>
.revAcc {
	float : left;
	position : absolute;
	width : auto;
	height : auto;
	border : 1px solid #ccc;
	z-index : 9999;
	background-color : #FFFFFF;
	max-height : 200px;
	min-width : 228px;
	overflow-y:auto; 
}

.revAccItem {
	height : 27px;
	line-height : 27px;
	padding: 0px 5px 0px 5px;
}

.revAccItem:hover {
	background-color : rgb(51,153,255);
	color : #FFFFFF;
	cursor : default;
}

.amplifier {
	float : left;
	position : absolute;
	width : auto;
	height : 30px;
	border : 1px solid #ccc;
	z-index : 9999;
	background-color : #FFFFFF;
	min-width : 228px;
	font-size: 30px;
	color: red;
}
</style>
</head>
<body onload="commonLoads();loads();useLoads();" onUnload="commonUnloads();" onbeforeunload="commonBeforeUnloads();">
	
	<script language="javascript">showHead();</script>
	
	<form name="jhform" Action="/NCCB/NECV6B2BMainPlat" method="POST" onSubmit='return go()'>
		<script>wirteNaviSetp(1,"请选择付款人")</script>
		<table class="tableForm" cellpadding="0" cellspacing="0" border="0" width="100%" id="stepTable0">
		  <tr>
            <td rowspan="4" nowrap class="formTitle" id="pay_info">
			<span class="red">*</span>付款人账号：
			</td>
            <td nowrap  colspan="3">
            <select name="sleteone"  id='sleteone' class="select slSty1" >
             	<option value="" >***请选择账号类别***</option>
				<option value="0" selected>全部</option>
				
					<option value="1">未分类</option>  						 
				
            </select>
			<a href="javascript:openWin('TXCODE|','NN5205|',AA);" title="客户可以通过账户分组功能对所有签约账户按使用功能进行简单分组，再根据分组快速选择付款账户" style="padding-left:22px;">账户分组</a>
			</td>
            </tr>

                <tr>
                  <td nowrap colspan="3" >
                    <select name="paixu" id="paixu"  nowrap class="select slSty1" ">
                    <option value="0" >按账户优先级排序</option>
				    <option value="1" >按账号排序</option>							 
				    <option value="2">按账户名排序</option>	
				  	</select>
				</td>
               </tr>

			  <tr>
			   <td nowrap colspan="3" >
			   <select name="PAY_ACCNO" id='PAY_ACCNO_ID' class="select slSty2" onchange='getPayAccNoInfo();checkAcc()'>
               </select>
				<label class="checkbox crNMR"><input type=checkbox name="DEFAUL_PAYACC"/>设置为默认付款账户</label>
				<div id="sele1_1" style="padding-top:5px;display:none">
				<select name="pay_sub1" nowrap  onChange="selPaySubAcc();" class="select slSty1">
                    <option value="0" selected>***请选择二级账户***</option>
				</select>
				<select name="pay_sub2" nowrap class="select slSty1" style='display:none' onChange="updateSubBlance();">
	                <option value="0" selected>***请选择三级账户***</option>
				</select>
				<span id ='SUB_BALANCE'></span>&nbsp;<a id="yhtHref" style="display:none;" href="javascript:queryPageSubAcc();">查看更多</a>
				</div>
				</td>
			  </tr>
			  
                <tr>
                  <td nowrap colspan="3" >
                  <input name="text" type="text" class="inTxt" id="ser" value="请输入模糊账号或模糊账户名称" style="color:#A9A9A9" onFocus="getFocus('ser');" onBlur="lostFocus('ser');">
				&nbsp;
			    <a class="iBtn icon2" onclick="$.windowbox.aa()" title="您可输入付款账户的账号、账户名称、开户机构、币种或者账户别名中的关键字过滤付款账户">模糊查询</a>
			    <a class="iBtn icon1" href="#" onclick="$.windowbox.aa()">查询余额</a>
				</td>
                </tr>

				
                  <tr id='sele1_2' style='display:none'>
				   <td nowrap class="formTitle"><span class="red">*</span> 转账类型：</td>
                       <td nowrap colspan="3" >
					<label class="radio crNMR"><input TYPE="radio" NAME="TRAN_WAY" checked onclick='selTranWay()'>外转 </label>
					<label class="radio crNMR"><input TYPE="radio" NAME="TRAN_WAY" onclick='selTranWay()'>内转</label></td>
                 </tr>
                     
				 </table>

				 <script>wirteNaviSetp(2,"请选择收款人")</script>
				 <table class="tableForm" cellpadding="0" cellspacing="0" border="0" width="100%" id="stepTable1">

				  <tr id="recv_type">
                    <td nowrap class="formTitle"> <span class="red">*</span>收款人行别：</td>
					<td colspan="3" >
					<label class="radio crNMR"><input type="radio" name="recv_acc_type" value="0" checked onClick="dxAccsChange();">收款人为建行</label>
					<label class="radio crNMR"><input type="radio" name="recv_acc_type" value="1" onClick="dxAccsChange();">收款人为他行</label>&nbsp;
					</td>
                   </tr>

                   <tr id='sele1_3' style='display:none'>
                     <td nowrap class="formTitle">
					<span class="red">*</span>收款人账号：
					</td>
					<td height="2" nowrap colspan="3" > 
						<select name="recv_sub1" class="select slSty1" nowrap  onChange="selRecvSubAcc();">
		                        <option value="0" >***请选择二级账户***</option>
						</select>
						<select name="recv_sub2" class="select slSty1" nowrap style="display:none">
		                        <option value="0" >***请选择三级账户***</option>
						</select>
					</td>
                 </tr>

          <tr id="sele4">
            <td nowrap id="sele5" class="formTitle">
			<span class="red">*</span>收款人账号：
			</td>
            <td nowrap id="sele6"  colspan="2">
			<INPUT TYPE="text" id="RECV_ACCNO_IN"  NAME="RECV_ACCNO_IN" onfocus="showAccSelection(this);showAmplifier(this);" onblur="hiddenAccSelection(this);hiddenAmplifier(this);" onkeyup="formatAcc(this);showAccSelection(this);showAmplifier(this);" class="inTxt">
			&nbsp;
			<a id="commRecvHref" href="javascript:queryComnRecvAcc('1')"  class="iBtn icon3">常用收款账户</a>
			<a id="signAuthHref" href="javascript:queryComnRecvAcc('2')"  class="iBtn icon4">签约及授权账户</a><a id="tipShow" class="ccbHelp" href="javascript:void(0);"></a>&nbsp;
		    </td>
		    <td><span id="tipErr" style='color:red'></span></td>
		   </tr>

		   <tr  id="other_recvnm" style="display:none">
              <td nowrap id="sele5" class="formTitle">
			  <span class="red">*</span>收款人户名：
			  </td>
              <td nowrap  colspan="3">
			  <INPUT TYPE="text" id="RECV_ACC_NAME" NAME="RECV_ACC_NAME" class="inTxt">
		      </td>
		   </tr>
			
		   
		   <tr id="dingxiang_recv" style="display:none">
				<td nowrap id="sele5" class="formTitle">
				<span class="red">*</span>收款人账号：
				</td>
				<td nowrap  colspan="3">
				<select class="select_account" id="dx_recv_acc" onChange="selDxOtherAcc();">
				</select>&nbsp;<a id="dxHref" style="display:none" href="javascript:queryPageDxAcc();">数量已超出下拉列表限值，请通过分页列表查找</a>
				 </td>
		   </tr>
		   
		   	 
		     <tr id="sel_opendept" style="display:none;">
	           	<td nowrap rowspan="4" id='BANK_TD' class="formTitle"><span class="red">*</span>收款人开户行：</td>
	           	 <td  nowrap colspan="2">
					<label class="radio crNMR"><input id='kuaiin'  name="OTHERBANKTYPE" type="radio" value="1" checked onclick="swtype1();">
				    快速选择</label>
					<label class="radio crNMR"><input id='shouin' name="OTHERBANKTYPE" type="radio" value="0" onclick="swtype2();">手工录入</label>
			    </td>
			    <td><span id="bank_tip">如未找到开户机构，请在【手工录入】中填写</span>&nbsp;</td>
			</tr>
			
			<tr id="bank_tr" style="display:none;">
	           	<td nowrap  colspan="2">
	           		<input  type="text" id="outbank" value="请选择或输入开户行关键字匹配" dataSrc="bankData" class="inTxt select_box" filter="true">
					<input type="hidden" name="OUTBANK" id="hidden_outbank" value="">
	           		
	                <input type="text" class="inTxt" name="OPENDEPTKW" size="16" value='' onfocus="document.getElementById('p_tip').className='p_focus';" onblur="document.getElementById('p_tip').className=''">
	                <a href="javascript:serOpenDept()" class="iBtn icon1">模糊查询</a>
			   </td>
			   <td>
				<span id="p_tip">选择开户行<a id="tipShow2" class="ccbHelp" href="javascript:void(0);"></a>后，您可输入<b>联行号</b>或者<b>关键字</b>进行查找</span>
			   </td>
	         </tr>
	         
	         
	         <tr id="province_city" style="display:none;">
	         	<td nowrap colspan="3" >
	         		
	               <input  type="text" id="province" name="SHOW_PROVINCE" value="请选择或输入省份关键字匹配" dataSrc="provData" class="inTxt select_box" filter="true">
				   <input type="hidden" name="PROVICE" id="hidden_province" value="">
				   <input  type="text" id="city" value="请选择或输入城市关键字匹配" dataSrc="cityData" class="inTxt select_box" filter="true">
				   <input type="hidden" name="CITY" id="hidden_city" value="">
	             </td>
	         </tr>

			<tr id="sel_counter" style="display:none;">
			  <td nowrap  colspan="3"> 
			    
                 <input  type="text" id="netcounter1" value="请选择或输入具体网点关键字匹配" dataSrc="counterData" class="inTxt select_box slSty2" filter="true"">
				 <input type="hidden" name="NETCOUNTER" id="hidden_netcounter1" value="">
		      </td>
		      
			</tr>

			<tr id="inputCounterTr" style="display:none;">
			   <td  colspan="3" >
			   		
            		<input id="input_counter" name="input_counter" type="text" size="60" value="请输入XXX银行XXX省XXX市XXX网点" class="inTxt" style="color:#ccc;width:330px;" onfocus="getFocus2('input_counter');" onblur="lostFocus2('input_counter');">
			  </td>
            </tr>
		  </table>

		  <script>wirteNaviSetp(3,"请填写交易金额及相关信息")</script>
		  <table class="tableForm" cellpadding="0" cellspacing="0" border="0" width="100%" id="stepTable2">
		   
		    <tr id="pay_condition" style="display:" title="客户在办理转账交易可根据实际业务需要选择定余额、定比例、零余额、取整等付款方式"> 
               <td nowrap class="formTitle">定条件付款：</td>
               <td nowrap > 
                 <label class="checkbox crNMR"><input name="IS_FUKUAN" type="checkbox" id="IS_FUKUAN" onClick="selPayCondition();"></label>
               </td>
             </tr>
				
			<tr id="dtj" name="dtj" style="display:none">
				<td nowrap class="formTitle">
					<span class="red">*</span>付款条件：
				</td>
                <td nowrap  colspan="3" > 
					<div id="FUKUANLEIXING" style="display:">
                         <select name="PAY_TYPE_FLAG" id="PAY_TYPE_FLAG" class="select slSty1" onChange="payConditionAmt();">
                           <option value="">请选择</option>
                           <option value="1" title="付款账户中不留余额，全部款项都一次性划走">零余额</option>
                           <option value="2" title="付款账户中留有指定金额的款项，其它多余的款项全部划走">定余额</option>
                           <option value="3" title="付款账户中划走指定取整精度的整数倍的款项,不足整数倍的款项留下">取整</option>
                           <option value="4" title="付款账户中划走指定比例的款项,其他多余的款项留下">定比例</option>
                         </select>
                          &nbsp;&nbsp;
					   <span id="cfje" name="cfje" style="display:none">
					   触发金额：                   
                          <input type="text" name="TRIAMOUNT" id='TRIAMOUNT_ID' value="" maxlength="20" class="inTxt" onfocus="showAmplifier(this);" onBlur="IsAmtById('TRIAMOUNT_ID','CHUFA_ID','金额');hiddenAmplifier(this);" onkeyup="showAmplifier(this);">
					   （元）
					   </span>							  
					  </div> 
					</td>
					<input type="hidden" name="TRRIGER_BALANCE" id='CHUFA_ID'>
                  </tr>
                  <tr nowrap id="amount_tr">
				  <td nowrap class="formTitle"> 
					 <span class="red">*</span><span id="showAmount">金额：</span>                     
				  </td>
				  <td nowrap  colspan="3"> 
						<input type="text" name="AM" id='AM_ID' value="" maxlength="20" class="inTxt" onfocus="showAmplifier(this);" onBlur="IsAmtById('AM_ID','AMOUNT_ID','金额');hiddenAmplifier(this);" onkeyup="change_amt();showAmplifier(this);">
						<input type="hidden" size="18"  name="AMOUNT" id='AMOUNT_ID'>（元）
						&nbsp;<a href="javascript:queryTranLimit();" class="main">交易限额查询</a>
						
				   </td>
				  </tr>
				  
				  <tr nowrap id="bigAmount_tr">
				  <td nowrap class="formTitle"> 
					 <span id="showAmount">大写金额：</span>                     
				  </td>
				  <td nowrap  colspan="3">
				  	<b class="red"><span id="bigChineseShow"></span></b>&nbsp;
				   </td>
				  </tr>
                     <tr id="BLTJ_TR" style="display:none">
                     	<td nowrap class="formTitle"> <span class="red">*</span>比例系数：</td>
                       <td  nowrap colspan="3" >
                       	<input type="text" name="PROPOTION" value="" maxlength="3" class="inTxt"/>%  
                       	(参考值1～100)
                       </td>						
                     </tr>
                     <tr id="QZJD_TR" style="display:none">
                     	<td height="4" nowrap class="formTitle"><span class="red">*</span>取整精度：</td>
                       <td height="4" nowrap colspan="3" >
                       	<select name="PRECISION" class="select slSty1">
                            <option value="1">元</option>
                            <option value="2">十元</option>
                            <option value="3">百元</option>
                            <option value="4">千元</option>
                            <option value="5">万元</option>
                            <option value="6">十万元</option>
                            <option value="7">百万元</option>
                            <option value="8">千万元</option>
                         	</select>
                       </td>						
				</tr>


			<tr>
			<td nowrap class="formTitle"><span class="red">*</span>用途： </td>
			<td nowrap colspan="3">
				  <input type="text" name="SELUSEOF" id='use1' value="请选择或输入用途" class="inTxt select_box" dataSrc="useData" filter="false"/>
				  &nbsp;
				  <span id="USE_SPAN" style="display:"><label class="checkbox crNMR"><input type="checkbox" id="useComm" name="USECOMM" >设置为默认用途</label></span>
				  <a href="javascript:openWin('TXCODE|','NN5104|',AA);">用途维护</a>
			</td>
      		</tr>
      
      		<tr>
				<td nowrap class="formTitle">客户方流水号： </td>
				<td nowrap colspan="3" > 
					  <input type="text" maxlength="60" name="PAY_SEQ_NO" value="" class="inTxt">
				</td>
      		</tr>

		   
	
		   
		   <tr id="defy_info1" style="display:none"><td nowrap class="formTitle"></td><td nowrap  colspan="3"></td></tr>
		   <tr id="defy_info2" style="display:none"><td nowrap class="formTitle"></td><td nowrap  colspan="3"></td></tr>
		   <tr id="defy_info3" style="display:none"><td nowrap class="formTitle"></td><td nowrap  colspan="3"></td></tr>
		   <tr id="defy_info4" style="display:none"><td nowrap class="formTitle"></td><td nowrap  colspan="3"></td></tr>
		   <tr id="defy_info5" style="display:none"><td nowrap class="formTitle"></td><td nowrap  colspan="3"></td></tr>
		   <tr id="defy_info6" style="display:none"><td nowrap class="formTitle"></td><td nowrap  colspan="3"></td></tr>
		   <tr id="defy_info7" style="display:none"><td nowrap class="formTitle"></td><td nowrap  colspan="3"></td></tr>
		   <tr id="defy_info8" style="display:none"><td nowrap class="formTitle"></td><td nowrap  colspan="3"></td></tr>
		   <tr id="defy_info9" style="display:none"><td nowrap class="formTitle"></td><td nowrap  colspan="3"></td></tr>
		   <tr id="defy_info10" style="display:none"><td nowrap class="formTitle"></td><td nowrap  colspan="3"></td></tr>
		   
		   
		    
<!DOCTYPE html>

<script type="text/javascript" src="https://b2bstatic.ccb.com/V6/STY6/CN/js7/pub/jquery.js"></script>
<script type="text/javascript" src="https://b2bstatic.ccb.com/V6/STY6/CN/js6/jquery.dialog.js"></script>
		<tr>
			<td nowrap class="formTitle">定时定频设置：</td>
			<td nowrap colspan="3" > 
			  <label class="checkbox crNMR"><input name="EXEC_TYP" type="checkbox" id="EXEC_TYP" value="1" onClick="isTimeDeal(this.checked)"></label>
			  <span id="dslx" style="display:none">
				<label class="radio"><input name="BOOK_TYP" type="radio" value="0" checked onClick="checkdslx(this.value);">
				定时
				</label>
				<label class="radio"><input type="radio" name="BOOK_TYP" value="1" onClick="checkdslx(this.value);">
				定频
				</label>
				<label class="radio" id="yycr_set" style="display:none"><input type="radio" name="BOOK_TYP" value="2" onClick="checkdslx(this.value);">
				预约次日&nbsp;<span id="yycr_tip" style="display:none">(预约次日是指转账交易将在下一个交易日发起）</span>
				</label>
			  </span>
			</td>
		  </tr>

		  <tr id="dz_name" style="display:none"> 
			  <td nowrap class="formTitle">定制名称：</td>
			  <td nowrap colspan="3" > 
			    <input type="text"  maxlength="100" id="dz_info" name="DEF_NAME" class="inTxt">
			</td>
		  </tr>

		   <tr  id="zxrq1" style="display:none"> 
			<td nowrap class="formTitle">执行日期：</td>
			<td nowrap colspan="3" > 
			  <!-- 日期：<input type="text" size="12" value="" maxlength="8" class="text" >&nbsp;&nbsp;
			  时间：<input type="text" size="6" value="" maxlength="4" class="text" >&nbsp;&nbsp; -->
			<input class="inDate" type="text" value="" id="date" name="DATE"/><a class="dateBtn" href="javascript:ShowCalendar('img', 'date', null, '8/1/1999', '1/22/2039');"><img id="img" class="dateImg" src="https://b2bstatic.ccb.com/V6/STY6/CN/images7/date.png"></a>
			（标准输入格式20121113表示2012年11月13日）
			</td>
		  </tr>
		   <tr id="zxrq2" style="display:none"> 
			<td nowrap class="formTitle">执行日期：</td>
			<td nowrap colspan="3" > 
			  
				<label class="radio"><input type="radio" name="REP_TYP" id="REP_TYP_1" value="1" checked onClick="checkzxrq(this.id)" >
				每日
				</label>
				<label class="radio"><input type="radio" name="REP_TYP" id="REP_TYP_2" value="2" onClick="checkzxrq(this.id)">
				每周
				</label>
				<label class="radio"><input type="radio" name="REP_TYP" id="REP_TYP_3" value="3" onClick="checkzxrq(this.id)">
				每月
				</label>
				<label class="radio"><input type="radio" name="REP_TYP" id="REP_TYP_4" value="3" onClick="checkzxrq(this.id)">
				每月最后一日
				</label>
			  <span id="zxrq" style="display:none">
			  &nbsp;&nbsp;<input name="REP_DATE" id="REP_DATE" type="text" value="" class="inTxt">
			  </span>
			  <span id="zxts1" style="display:none">
			  (各执行日期之间用&quot;,&quot;隔开 如:1,3表示每周一、周三）
			  </span>
			  <span id="zxts2" style="display:none">
			  (各执行日期之间用&quot;,&quot;隔开 如:1,15表示每月1号、15号）
			  </span>
			</td>
		  </tr>
		   <tr id="zxsj" style="display:none"> 
                        <td nowrap class="formTitle">执行时间：</td>
                        <td nowrap colspan="3" > 
                          <!-- 日期：<input type="text" size="12" value="" maxlength="8" class="text" >&nbsp;&nbsp;
                          时间：<input type="text" size="6" value="" maxlength="4" class="text" >&nbsp;&nbsp; -->
                    <select name="HH" id="HH" class="select">
							<script language="javascript">
								for(var i=0;i<=23;i++){
									if(i<10)
										document.write("<option value='0"+i+"'>0"+i+"</option>");
									else
										document.write("<option value='"+i+"'>"+i+"</option>");
								}
					</script>	
					</select>时 <select name="MM" id="MM" class="select">
						<option value="00">00</option>
						<option value="05">05</option>
						<option value="10">10</option>
						<option value="15">15</option>
						<option value="20">20</option>
						<option value="25">25</option>
						<option value="30">30</option>
						<option value="35">35</option>
						<option value="40">40</option>
						<option value="45">45</option>
						<option value="50">50</option>
						<option value="55">55</option>
					</select>分

                        </td>
                      </tr>
              
              <tr id="time_tips" style="display:none;">
                 <td colspan="4">
	                 <span style="color:red">&nbsp;&nbsp;&nbsp;&nbsp;温馨提示：如需每月最后一日执行，请将执行日期设置为“每月最后一日”。</span>
	             </td>
              </tr>
			  <script language="javascript">
			  function isTimeDeal(checked){
				  if(checked){
					  document.getElementById("dslx").style.display="";
					  document.getElementById("zxrq1").style.display="";
					  document.getElementById("dz_name").style.display="";
					  document.getElementById("zxsj").style.display="";
					  try{
					  	  var selBookTyp = document.getElementsByName("BOOK_TYP");
						  if(selBookTyp[0].checked){
						  	checkdslx(0);	//默认选择定时
						  }else if(selBookTyp[1].checked){
						  	checkdslx(1);   //默认选择定频
						  }else if(document.getElementById("yycr_set").style.display==""&&selBookTyp[2].checked){
						  	checkdslx(2);   //默认选择预约次日
						  }
					  }catch(e){
					  
					  }
				  }else{
					  document.getElementById("dslx").style.display="none";
					  document.getElementById("zxrq1").style.display="none";
					  document.getElementById("zxrq2").style.display="none";
					  document.getElementById("zxsj").style.display="none";
					  document.getElementById("dz_name").style.display="none";
					  document.getElementById("time_tips").style.display="none";
				  }
			  }

			  function checkdslx(value){
				if(value=="0"){
					  document.getElementById("zxrq1").style.display="";
					  document.getElementById("zxrq2").style.display="none";
					  document.getElementById("time_tips").style.display="none";
					  document.getElementById("dz_name").style.display="";
					  document.getElementById("zxsj").style.display="";
					  document.getElementById("yycr_tip").style.display="none";
				}else if(value=="1"){
					  document.getElementById("zxrq1").style.display="none";
					  document.getElementById("zxrq2").style.display="";
					  document.getElementById("dz_name").style.display="";
					  document.getElementById("zxsj").style.display="";
					  document.getElementById("yycr_tip").style.display="none";
				}else{
				 	 document.getElementById("zxrq1").style.display="none";
					 document.getElementById("zxrq2").style.display="none";
					 document.getElementById("zxsj").style.display="none";
					 document.getElementById("dz_name").style.display="none";
					 document.getElementById("time_tips").style.display="none";
					 document.getElementById("yycr_tip").style.display="";
				}
			  }
			 
			  /**为了兼容原单据修改和选择radio按钮时两种触发场景**/
			  function checkzxrq(ObjId){
				if(ObjId=="REP_TYP_1"||ObjId=="1"){
					  document.getElementById("zxrq").style.display="none";
					  document.getElementById("zxts1").style.display="none";
					  document.getElementById("zxts2").style.display="none";
					  document.getElementById("time_tips").style.display="none";
					  document.getElementById("REP_DATE").value="";
				}else if(ObjId=="REP_TYP_2"||ObjId=="2"){
					  document.getElementById("zxrq").style.display="";
					  document.getElementById("zxts1").style.display="";
					  document.getElementById("zxts2").style.display="none";
					  document.getElementById("time_tips").style.display="none";
					  document.getElementById("REP_DATE").value="";
				}else if(ObjId=="REP_TYP_3"||ObjId=="3"){
					  document.getElementById("zxrq").style.display="";
					  document.getElementById("zxts1").style.display="none";
					  document.getElementById("zxts2").style.display="";
					  document.getElementById("time_tips").style.display="";
					  document.getElementById("REP_DATE").value="";
				}else{
					document.getElementById("zxrq").style.display="none";
				  	document.getElementById("zxts1").style.display="none";
				  	document.getElementById("zxts2").style.display="none";
				  	document.getElementById("time_tips").style.display="none";
				  	document.getElementById("REP_DATE").value="32";
				}
			  }
			  
			  function getmyselfDate(a){
					if (a<10)
					{
						return "0"+a;
					}
					return a;
				}
				
				//周判断
				var toCompareMapWeek = {
						"1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7"
					};
				
				//月判断
				var toCompareMapMonth = {
						"1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","10":"10",
						"11":"11","12":"12","13":"13","14":"14","15":"15","16":"16","17":"17","18":"18","19":"19","20":"20",
						"21":"21","22":"22","23":"23","24":"24","25":"25","26":"26","27":"27","28":"28","29":"29","30":"30","31":"31"
					};
				function testDate(strTest,strCompareMap) {
					var res = true;
					
					var tmpArr = strTest.split(",");
					/**
					if(testStr.indexOf(",") == -1) {
						res = false;
					}**/
					for(var i = 0;i < tmpArr.length;i++) {
						if(strCompareMap[tmpArr[i]] == "" || typeof(strCompareMap[tmpArr[i]]) == 'undefined') {
							res = false;
							break;
						}
					}
					return res;
				}
				
				//判断设置的每月执行日期如果含有29、30、31，则提示客户 如果返回0则交易继续提交，返回1，则交易不提交，客户可重新设置执行日期
				var subStatus = "1";
				function specialDate(strTest){
					if(strTest.indexOf("29")>-1||strTest.indexOf("30")>-1||strTest.indexOf("31")>-1){
						showDialog("来自于网页信息",continuSubmit,modifyDate);
						//return false;
					}else{
						subStatus = "0";
					}
				}
				
				function continuSubmit(){
					subStatus = "0";
					document.jhform.submit();
					$closeDialog();
				}
				
				function modifyDate(){
					subStatus = "1";
					document.jhform.REP_DATE.focus();
					$closeDialog();
				}
				
			
			  </script>
		   
		</table>
		<span ID="AA"></span>
		<span ID="BB"></span>
		<input type="hidden" name="REC_ACCNO" value="">
		<input type="hidden" name="PAY_ACC_NO" value="">
		<input type="hidden" name="PAY_SUB_ACCNO" value="">
		<input type="hidden" name="PAY_SUB_ACCNAME" value="">
		<input type="hidden" name="RECV_SUB_ACCNO" value="">
		<input type="hidden" name="RECV_SUB_ACCNAME" value="">
		<input type="hidden" name="BOOK_DATE" value="">
		<input type="hidden" name="BOOK_TIME" value="">
		<input type="hidden" name="CORP_PRVT_IND" value=""/>
		
		<input type="hidden" name="DX_RECV_ACCNAME" value=""/>
		<input type="hidden" name="DX_RECV_ACCDEPT" value=""/>
		<input type="hidden" name="DX_RECV_BKCODE" value=""/>
		<input type="hidden" name="SEARCH_RECV_FLAG" value=""/>
		
		<input type="hidden" name="ACC_OPER_TYPE" value=""/>   
		<input type="hidden" name="USE_OPER_TYPE" value=""/>   
		
		<input type="hidden" name="PAY_TYPE" value="0"/> 
		<input type="hidden" name="SIGN_NUM" value=""/> 
		
		<input type="hidden" name="FLOW_NO" value=""/>
		<input type="hidden" name="TRD_TYP" value=""/>
		<input type="hidden" name="PROCESS_INST_ID" value=""/> 
		<input type="hidden" name="TASK_INST_ID" value=""/> 
		<input type="hidden" name="P_TPL_NO" value=""/> 
		<input type="hidden" name="TASK_ID" value=""/> 
		<input type="hidden" name="TXCODE" value="NN1101">
	 	<input TYPE="hidden" NAME="SKEY" VALUE='gNLe16'>
        <input TYPE="hidden" NAME="CUSTOMERID" VALUE='JS32000009186746101'>
        <input TYPE="hidden" NAME="USERID" VALUE='111111'>
        <input TYPE="hidden" NAME="DataDic" VALUE="1">
        <input type="hidden" name="errURL" value='/NCCB/NECV6B2BMainPlat?TXCODE=NN1100&USERID=111111&CUSTOMERID=JS32000009186746101&SKEY=gNLe16'>
		
		<div class="btnArea">
			<div class="btnLine">
	        <input type="submit" id="sbt" name="Submit4" value="下一步" class="btn bSty">
			</div>
		</div>
		
		
 		
 		<div class="txtTipBox">
 			<div class="txtTipTitle">温馨提示</div>
			<div class="txtTipline">
				您可到“服务管理-个性设置-<a href="#">用途维护</a>”中对用途进行自定义设置。
			</div>
		</div> 
					
	</form>
	<div id="ccbRevAcc" class="revAcc" style='display : none;'></div>
	<div id="amplifier" class="amplifier" style='display : none;'></div>
	
	<script type="text/javascript" src="https://b2bstatic.ccb.com/V6/STY6/CN/js7/ccbQuery.js"></script>
	<script type="text/javascript" src="https://b2bstatic.ccb.com/V6/STY6/CN/js6/jquery.select.js?v=1.3"></script>
	<script src="https://b2bstatic.ccb.com/V6/STY6/CN/js6/tx/toChineseMoney.js" language="javascript"></script>
	<script language="javascript">showFooter();</script>
</body>
</html>